Kaynağa Gözat

dpkg: Rename newtarobject_allmodes() to tarobject_set_perms()

Guillem Jover 15 yıl önce
ebeveyn
işleme
f281bc0fd6
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/archives.c

+ 2 - 2
src/archives.c

@@ -241,7 +241,7 @@ tarobject_set_mtime(const char *path, struct file_stat *st)
 }
 }
 
 
 static void
 static void
-newtarobject_allmodes(const char *path, struct file_stat *st)
+tarobject_set_perms(const char *path, struct file_stat *st)
 {
 {
   if (chown(path, st->uid, st->gid))
   if (chown(path, st->uid, st->gid))
     ohshite(_("error setting ownership of `%.255s'"), path);
     ohshite(_("error setting ownership of `%.255s'"), path);
@@ -764,7 +764,7 @@ tarobject(void *ctx, struct tar_entry *ti)
   }
   }
 
 
   if (ti->type != tar_filetype_symlink && ti->type != tar_filetype_file)
   if (ti->type != tar_filetype_symlink && ti->type != tar_filetype_file)
-    newtarobject_allmodes(fnamenewvb.buf, st);
+    tarobject_set_perms(fnamenewvb.buf, st);
   if (ti->type != tar_filetype_symlink)
   if (ti->type != tar_filetype_symlink)
     tarobject_set_mtime(fnamenewvb.buf, st);
     tarobject_set_mtime(fnamenewvb.buf, st);
   set_selinux_path_context(fnamevb.buf, fnamenewvb.buf, st->mode);
   set_selinux_path_context(fnamevb.buf, fnamenewvb.buf, st->mode);