On Wednesday 08 of June 2005 01:06, Vagrant Cascadian wrote: > if i use fakechroot to chroot to a directory, run-parts doesn't act as > if "/" has been moved. > > run-parts: failed to open directory /etc/lessdisks/init.d/: No such file > or directory > > what could be going on here?
[EMAIL PROTECTED]:/# ltrace -f run-parts /tmp/run-parts/ __libc_start_main(0x80498d0, 2, 0xbffff6e4, 0x8049a10, 0x8049a70 <unfinished ...> umask(022) = 022 realloc(NULL, 16) = 0x804c050 getopt_long(2, 0xbffff6e4, "u:ha:vV", 0x804b440, 0xbffff678) = -1 strlen("/tmp/run-parts/") = 15 malloc(19) = 0x804c068 strcpy(0x804c068, "/tmp/run-parts/") = 0x804c068 strcat("/tmp/run-parts/", "/") = "/tmp/run-parts//" scandir(0xbffff858, 0xbffff5dc, 0x8048df0, 0x8048958, 0x400b3200) = -1 __errno_location() = 0x40171c40 strerror(2) = "No such file or directory" fwrite("run-parts: ", 1, 11, 0x4016b440run-parts: ) = 11 vfprintf(0x4016b440, "failed to open directory %s: %s", 0xbffff5c4failed to open directory /tmp/run-parts/: No such file or directory) = 67 fputc('\n', 0x4016b440 ) = 10 exit(1 <unfinished ...> +++ exited (status 1) +++ run-parts uses scandir() function which is not wrapped yet so I'm going to implement it. Thank you for report! -- .''`. Piotr Roszatycki, Netia SA : :' : mailto:[EMAIL PROTECTED] `. `' mailto:[EMAIL PROTECTED] `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]