]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(EEXIST): Remove now-unused definition.
authorJim Meyering <jim@meyering.net>
Sat, 6 May 2000 14:31:32 +0000 (14:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 May 2000 14:31:32 +0000 (14:31 +0000)
(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..

src/rmdir.c

index b193a08519cdde6161bda8929fad43df6adeacde..f4a8a3d6769bf7761ea2eee678a9489ed4189d70 100644 (file)
@@ -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.