Don't include "dirname.h" when no longer needed.
#include <sys/types.h>
#include "system.h"
-#include "dirname.h"
#include "error.h"
#include "quote.h"
int fail;
char *dir = argv[optind];
- /* Stripping slashes is harmless for rmdir;
- if the arg is not a directory, it will fail with ENOTDIR. */
- strip_trailing_slashes (dir);
-
/* Give a diagnostic for each attempted removal if --verbose. */
if (verbose)
error (0, 0, _("removing directory, %s"), dir);