[SLUG] shell not following instructions (chmod)

From: Eben King (eben01@verizon.net)
Date: Mon Dec 15 2008 - 00:05:00 EST


In the process of solving an existing problem (need a compressed
filesystem), I ran into two more.

First, mksquashfs seems to ignore any parameter to "-root-becomes". OK,
that's obnoxious, and I'll just live with the corresponding extra mounts
needed to get around that problem.

More important is this:

I wrote a script to decompress the data, a subdirectory at a time, and add
it to an existing squash filesystem. It works fine up to "29" (hex, from
00). This is a piece of the script's output, with /bin/sh and "set -x":

+ ls -l . 29
.:
total 16
drwxr-xr-x 2 eben root 16384 2008-12-03 14:48 29

29:
total 1056
-rwxr-xr-x 1 eben root 53217 2007-06-04 06:43 129d-1.pdb
-rwxr-xr-x 1 eben root 53217 2007-06-04 06:43 129d.pdb1
(etc)
+ chmod 644 29/129d-1.pdb 29/129d.pdb1 29/129l-1.pdb 29/129l.pdb1
29/229d-1.pdb 29/229d.pdb1 29/229l-1.pdb 29/229l.pdb1 29/329d-1.pdb
29/329d.pdb1 29/429d-1.pdb 29/429d-2.pdb 29/429d.pdb1 29/429d.pdb2
+ ls -l . 29
.:
total 16
drwxr-xr-x 2 eben root 16384 2008-12-03 14:48 29

29:
total 1056
-rwxr-xr-x 1 eben root 53217 2007-06-04 06:43 129d-1.pdb
-rwxr-xr-x 1 eben root 53217 2007-06-04 06:43 129d.pdb1
(etc)

Why don't the file permissions change? They should all be 644 the second
time around, but they remain 755.

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      royalty.mine.nu:81

Q: Why do black holes never learn? A: Because they're too dense. -- ZurkisPhreek on Fark ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:04:39 EDT