Cannot rename or give away directories which you can't write (srb)
authorKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Mon, 27 Apr 1981 03:53:47 +0000 (19:53 -0800)
committerKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Mon, 27 Apr 1981 03:53:47 +0000 (19:53 -0800)
SCCS-vsn: bin/mv/mv.c 4.4

usr/src/bin/mv/mv.c

index cc46e9d..e46a1fb 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)mv.c        4.3 (Berkeley) 81/02/28";
+static char *sccsid = "@(#)mv.c        4.4 (Berkeley) 81/04/26";
 /*
  * mv file1 file2
  */
 /*
  * mv file1 file2
  */
@@ -211,10 +211,6 @@ char *source, *target;
                fprintf(stderr, "mv: no write access to %s\n", pname(source));
                return(1);
        }
                fprintf(stderr, "mv: no write access to %s\n", pname(source));
                return(1);
        }
-       if (access(source, 2) < 0) {
-               fprintf(stderr, "mv: no write access to %s\n", source);
-               return(1);
-       }
        if (s1.st_dev != s2.st_dev) {
                fprintf(stderr, "mv: cannot move directories across devices\n");
                return(1);
        if (s1.st_dev != s2.st_dev) {
                fprintf(stderr, "mv: cannot move directories across devices\n");
                return(1);