digitemp mnie nie lubi?
Miro Ziemski
miro w elzab.com.pl
Sob, 4 Gru 2004, 23:36:42 CET
Łukasz Maśko wrote:
> Dnia sobota, 4 grudnia 2004 23:22, Miro Ziemski napisał:
> [...]
>
>>Ekhem, to już zrobiłem... jakby mi działało nie zawracałbym głowy.
>
>
> Sorry :-( Może strace coś pomoże? Kwestia, jak sprawdzane jest to prawo
> dostępu.
>
Nie całkiem od początku ale chyba wystarczy?
write(1, "GNU Public License v2.0 - http:/"..., 51GNU Public License
v2.0 - http://www.brianlane.com
) = 51
access("/dev/ttyS0", R_OK|W_OK) = 0
umask(0) = 017
stat64("/dev/ttyS0", {st_mode=S_IFCHR|0664, st_rdev=makedev(4, 64),
...}) = 0
getpid() = 7277
open("/var/lock/LCK...7277", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0666, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
write(3, " 7277\n", 11) = 11
close(3) = 0
munmap(0x40016000, 4096) = 0
creat("/var/lock/LOCKDEV", 0777) = 3
flock(3, LOCK_EX|LOCK_NB) = 0
open("/var/lock/LCK..ttyS0", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0666, st_size=11, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
read(4, " 7261\n", 4096) = 11
close(4) = 0
munmap(0x40016000, 4096) = 0
kill(7261, SIG_0) = -1 ESRCH (No such process)
getpid() = 7277
unlink("/var/lock/.7277") = -1 ENOENT (No such file or
directory)
rename("/var/lock/LCK..ttyS0", "/var/lock/.7277") = -1 EPERM (Operation
not permitted)
open("/var/lock/.7277", O_RDONLY) = -1 ENOENT (No such file or
directory)
unlink("/var/lock/LCK...7277") = 0
unlink("/var/lock/LOCKDEV") = 0
close(3) = 0
umask(017) = 0
write(2, "Error locking ttyS0. Do you have"..., 67Error locking ttyS0.
Do you have permission to write to /var/lock?
) = 67
munmap(0x40015000, 4096) = 0
exit_group(5) = ?
--
Pozdrawiam
Miro Ziemski
Więcej informacji o liście dyskusyjnej pld-users-pl