home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / utils / bug / 2072 < prev    next >
Encoding:
Text File  |  1992-11-17  |  3.0 KB  |  90 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ocgy.ubc.ca!tam
  3. From: tam@ocgy.ubc.ca (Joseph Tam)
  4. Subject: Gnutar 1.11.1 bug - ownership of directories when extracted as root
  5. Message-ID: <846*tam@ocgy.ubc.ca>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 17 Nov 1992 01:46:00 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 77
  12.  
  13. You have probably got many reports of this bug, but I'll report it just
  14. in case nobody else has.  Gnutar 1.11.1 doesn't set the ownership correctly
  15. for explicitly created directories when the user is root.  The following
  16. results are from a Sun SparcStation and an SGI Indigo.
  17.  
  18. Here is the contents of a test archive.
  19.  
  20.     gnutar tvZf test.tar.Z
  21.  
  22.     drwxr-xr-x 210/19            0 Nov 17 09:29 1992 test/
  23.     -rw-r--r-- 210/19            0 Nov 17 09:29 1992 test/f1
  24.     drwxr-xr-x 210/19            0 Nov 17 09:29 1992 test/d1/
  25.     drwxr-xr-x 210/19            0 Nov 17 09:29 1992 test/d1/d2/
  26.     -rw-r--r-- 210/19            0 Nov 17 09:29 1992 test/d1/d2/f5
  27.     -rw-r--r-- 210/19            0 Nov 17 09:29 1992 test/d1/d2/f6
  28.     -rw-r--r-- 210/19            0 Nov 17 09:29 1992 test/d1/f4
  29.     -rw-r--r-- 210/19            0 Nov 17 09:29 1992 test/d1/f3
  30.     -rw-r--r-- 210/19            0 Nov 17 09:29 1992 test/f2
  31.  
  32. user #210 = tam
  33. group #19 = atmos
  34.  
  35. When extracting the archive as root, I get
  36.  
  37.     gnutar xZf test.tar.Z
  38.     ls -lR test
  39.  
  40.     total 1
  41.     drwxr-xr-x   3 root     wheel        512 Nov 17 09:29 d1
  42.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:29 f1
  43.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:29 f2
  44.  
  45.     test/d1:
  46.     total 1
  47.     drwxr-xr-x   2 root     wheel        512 Nov 17 09:29 d2
  48.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:29 f3
  49.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:29 f4
  50.  
  51.     test/d1/d2:
  52.     total 0
  53.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:29 f5
  54.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:29 f6
  55.  
  56.  
  57. As you can see, the directories have ownership root/wheel.  However, if
  58. you add the f_modified flag, you get the correct ownership at the cost
  59. of changing the original modification time:
  60.  
  61.     gnutar xmZf test.tar.Z
  62.     ls -lR test
  63.  
  64.     total 1
  65.     drwxr-xr-x   3 tam      atmos        512 Nov 17 09:40 d1
  66.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:40 f1
  67.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:40 f2
  68.  
  69.     test/d1:
  70.     total 1
  71.     drwxr-xr-x   2 tam      atmos        512 Nov 17 09:40 d2
  72.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:40 f3
  73.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:40 f4
  74.  
  75.     test/d1/d2:
  76.     total 0
  77.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:40 f5
  78.     -rw-r--r--   1 tam      atmos          0 Nov 17 09:40 f6
  79.  
  80.  
  81. Joseph Tam <tam@ocgy.ubc.ca>   \___ \___________
  82. Department of Oceanography     \___ \___________
  83. University of British Columbia \___ \___________
  84. Vancouver, BC, Canada          \___     \___
  85. V6T 1W5                \___    \___     \___
  86.                        \___    \___     \___
  87. Phone: (604) 822-3911   \_________  \__ \___ \__
  88. Fax:   (604) 822-6091    \______    \__ \___ \__
  89.  
  90.