diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-06 14:31:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-06 14:31:32 +0000 |
commit | 9b6eb98d41ffd6275f75f5c1a58744b0fad9aa59 (patch) | |
tree | 9a9915a44d4d9250264f96540b33fbf74dc91db7 /src/rmdir.c | |
parent | 72efca119576858bd63da95c6fde8701a364db2d (diff) | |
download | coreutils-9b6eb98d41ffd6275f75f5c1a58744b0fad9aa59.tar.xz |
(EEXIST): Remove now-unused definition.
(ENOTEMPTY): Likewise.
(errno_rmdir_non_empty): Rewrite to use RMDIR_ERRNO_NOT_EMPTY,
which is determined by the autoconf test in m4/rmdir-errno.m4..
Diffstat (limited to 'src/rmdir.c')
-rw-r--r-- | src/rmdir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rmdir.c b/src/rmdir.c index b193a0851..f4a8a3d67 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -1,5 +1,5 @@ /* rmdir -- remove directories - Copyright (C) 90, 91, 1995-1999 Free Software Foundation, Inc. + Copyright (C) 90, 91, 1995-2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -86,8 +86,7 @@ static struct option const longopts[] = static int errno_rmdir_non_empty (int error_number) { - return (error_number == ENOTEMPTY - || error_number == EEXIST); + return (error_number == RMDIR_ERRNO_NOT_EMPTY); } /* Remove any empty parent directories of PATH. |