]> Dogcows Code - chaz/tar/commitdiff
(make_directories): Do not chown intermediate directories, even
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Aug 1999 08:13:20 +0000 (08:13 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Aug 1999 08:13:20 +0000 (08:13 +0000)
if we are root.

src/extract.c

index 27e6e583eaf345adc589f685889f4e164a0674b4..e761da5c884fbd8bfd90382f226092ad25c775d3 100644 (file)
@@ -249,16 +249,6 @@ make_directories (char *file_name)
 
       if (status == 0)
        {
-         /* Fix ownership.  */
-
-         if (we_are_root)
-           if (chown (file_name, current_stat.st_uid, current_stat.st_gid) < 0)
-             ERROR ((0, errno,
-                     _("%s: Cannot change owner to uid %lu, gid %lu"),
-                     file_name,
-                     (unsigned long) current_stat.st_uid,
-                     (unsigned long) current_stat.st_gid));
-
          print_for_mkdir (file_name, cursor - file_name,
                           ~newdir_umask & MODE_RWX);
          did_something = 1;
@@ -760,8 +750,8 @@ extract_archive (void)
        if (!warned_once)
          {
            warned_once = 1;
-           WARN ((0, 0, _("\
-Attempting extraction of symbolic links as hard links")));
+           WARN ((0, 0,
+                  _("Attempting extraction of symbolic links as hard links")));
          }
       }
       /* Fall through.  */
@@ -981,8 +971,8 @@ Attempting extraction of symbolic links as hard links")));
       break;
 
     case GNUTYPE_MULTIVOL:
-      ERROR ((0, 0, _("\
-Cannot extract `%s' -- file is continued from another volume"),
+      ERROR ((0, 0,
+             _("Cannot extract `%s' -- file is continued from another volume"),
              current_file_name));
       skip_file (current_stat.st_size);
       if (backup_option)
This page took 0.025365 seconds and 4 git commands to generate.