diff options
-rw-r--r-- | bin/rmdir/rmdir.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/rmdir/rmdir.c b/bin/rmdir/rmdir.c index 8967292..d6d1347 100644 --- a/bin/rmdir/rmdir.c +++ b/bin/rmdir/rmdir.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: rmdir.c,v 1.5 1997/02/22 14:05:40 peter Exp $ + * $Id: rmdir.c,v 1.6 1997/03/28 15:24:37 imp Exp $ */ #ifndef lint @@ -78,14 +78,6 @@ main(argc, argv) usage(); for (errors = 0; *argv; argv++) { - char *p; - - /* Delete trailing slashes, per POSIX. */ - p = *argv + strlen(*argv); - while (--p > *argv && *p == '/') - ; - *++p = '\0'; - if (rmdir(*argv) < 0) { warn("%s", *argv); errors = 1; |