[Ra] rm zwalone
Daniel Mróz
beorn w alpha.pl
Pon, 1 Mar 2004, 13:21:39 CET
Czesc
'rm' nie chce ze mna gadac przez stderr....
fileutils-4.1.9-9
[root w vogt tmp]# ls -al
total 1827136
drwxrwxrwt 3 root root 4096 Mar 1 13:16 .
drwxr-xr-x 18 root root 4096 Sep 4 19:36 ..
drwxr-xr-x 9 root root 4096 Mar 1 13:03 backup-01032004
-rw-r--r-- 1 root root 578826296 Mar 1 13:13
backup-01032004.tar.gz
-rw-r--r-- 1 root root 665739001 Feb 16 14:39
backup-16022004.tar.gz
-rw-r--r-- 1 root root 624559927 Feb 25 15:10
backup-25022004.tar.gz
-rw-r--r-- 1 root root 1634 Mar 1 13:16 rm.strace
[root w vogt tmp]# rm -rf backup-
[root w vogt tmp]#
<powyzej powinien byc ladny komunikat o braku pliku lub katalogu>
[root w vogt tmp]# cat rm.strace
execve("/bin/rm", ["rm", "-rf", "backup-"], [/* 22 vars */]) = 0
uname({sys="Linux", node="vogt", ...}) = 0
brk(0) = 0x804ef04
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x125000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=13188, ...}) = 0
old_mmap(NULL, 13188, PROT_READ, MAP_PRIVATE, 3, 0) = 0x126000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\10\333"...,
1024) = 1024
fstat(3, {st_mode=S_IFREG|0755, st_size=1198980, ...}) = 0
old_mmap(NULL, 1215104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x12a000
mprotect(0x248000, 43648, PROT_NONE) = 0
old_mmap(0x248000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x11d000) = 0x248000
old_mmap(0x24f000, 14976, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x24f000
close(3) = 0
munmap(0x126000, 13188) = 0
brk(0) = 0x804ef04
brk(0x804ef2c) = 0x804ef2c
brk(0x804f000) = 0x804f000
ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
brk(0x8050000) = 0x8050000
brk(0x8051000) = 0x8051000
brk(0x8052000) = 0x8052000
unlink("backup-") = -1 ENOENT (No such file or
directory)
_exit(0) = ?
[root w vogt tmp]#
Malo gadatliwa bestyja...
Pozdrawiam
Beorn
--
----------------------------------------------------------------------
Daniel `Beorn' Mróz <beorn w alpha.pl> http://127.0.0.1/beorn
GCS/E d+(pu) s: a-@ C++++ UL++++$ P+++ L+++ E--- X W+++ N++ o? K- w---
O M- V- PS PE- !Y PGP t- 5- R tv-- b+ DI++ D+++ G++ e h! r-- y+
----------------------------------------------------------------------
Więcej informacji o liście dyskusyjnej pld-devel-pl