[Converted from Gnats 1502] Apparently: $ mkdir foo $ mkdir bar $ $ cat ~/tmp/rename.c #include <stdio.h> #include <errno.h> main () { errno = 0; rename ("foo", "bar"); printf ("errno %d\n", errno); } $ cc rename.c -o rename $ ./rename errno 16 Reports EBUSY on an NFS file system, and (the more correct) ENOTEMPTY on a local file system. Apparently still present in current 2.6 Linux Kernel. Release: unknown
From: Andrew Cagney <ac131313@redhat.com> To: gdb-gnats@sources.redhat.com Cc: Subject: Re: external/1502: rename ("foo", "nonemptybar") on NFS gets EBUSY with Linux Kernel Date: Mon, 12 Jan 2004 10:08:37 -0500 Missing step in example: $ mkdir foo $ mkdir bar $ touch bar/baz **** $ cat ... The attempt to rename of a directory to a non-empty directory should return something like ENOTEMPTY but returns EBUSY on NFS.
State-Changed-From-To: open->feedback State-Changed-Why: somebody elses problem
Not a GDB related bug. Closing as INVALID.