[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Re: who owns what
From: |
dickey |
Subject: |
lynx-dev Re: who owns what |
Date: |
Thu, 8 Oct 1998 05:21:28 -0400 (EDT) |
> for starters, here are the complete output files from strace :
> (1) 2-8pre.2 overwrite, (2) 2-8pre.2 new file,
> (3) 2-8-1pre.6 overwrite, (4) 2-8-1pre.6 new file.
> all use Menu a/a Form & all predate my solution to the problem.
strace would show the details I'm looking for - but it limits the buffers
by default to 32 characters (there's a command-line option to lengthen it).
to find out who does own things, you can use 'ls', e.g.,
cd /
ls -lad .
cd /homes
ls -lad .
cd /homes/purslow
ls -lad .
> lxstat(2, "/homes/purslow", {st_mode=S_IFLNK|0755, st_size=18, ...}) = 0
for example (back to strace), I read the display as saying that it's found
a symbolic link whose permissions are 0755. (but the permissions of the
underlying filesystem are unknown -- permissions of symbolic links don't
matter much, but I got that information for free when my code in Lynx only
is looking to see if there's a link or not).
If I know more about what I'm solving, then I can try to fix it. Looking
at the code, perhaps this is where more work needs to be done:
*/
if (S_ISLNK(data.st_mode)) {
if (!linked) {
linked++;
} else { /* a link-to-link is a little hard to digest */
break;
^^^^^ (might be the problem - worth expanding if so)
}
} else if (S_ISDIR(data.st_mode)) {
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
- lynx-dev Re: who owns what,
dickey <=