Re: [PATCH] /proc filesystem bug in 2.1.125

Meelis Roos (mroos@tartu.cyber.ee)
Thu, 22 Oct 1998 19:50:52 +0300


>> elis# cd /proc/1
>> elis# /bin/pwd
>> /bin/pwd: cannot get current directory
>> elis#

MG> Is the version you're using doing something other than getcwd()?

lstat(".", {st_mode=0, st_size=0, ...}) = 0
lstat("/", {st_mode=S_ISVTX|0403, st_size=0, ...}) = 0
lstat("..", {st_mode=0, st_size=0, ...}) = 0
open("..", O_RDONLY|O_NONBLOCK) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=0, st_size=0, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
getdents(3, /* 57 entries */, 984) = 964
lseek(3, 267, SEEK_SET) = 267
lseek(3, 0, SEEK_CUR) = 267
getdents(3, /* 20 entries */, 984) = 320
lseek(3, 0, SEEK_CUR) = 287
getdents(3, /* 20 entries */, 984) = 320
lseek(3, 0, SEEK_CUR) = 307
getdents(3, /* 16 entries */, 984) = 256
lseek(3, 0, SEEK_CUR) = 323
getdents(3, /* 0 entries */, 984) = 0
close(3) = 0
write(2, "/bin/pwd: ", 10/bin/pwd: ) = 10
write(2, "cannot get current directory", 28) = 28
write(2, "\n", 1

RH 5.0/5.1 mix, sh-utils-1.16-14

-- 
Meelis Roos (mroos@tartu.cyber.ee)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/