X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=create.c;h=47c715568d5e41e0f051eaf9530f920dcc167753;hp=5c243d8f507a92efc93b2464b53de5ac5af732fe;hb=9ca6c5e46bfbfeb6341a54703a21e25c15ef0f7e;hpb=869b4f2d59febc3103979db5b5e6ab0f4ce0d8d3;ds=sidebyside diff --git a/create.c b/create.c index 5c243d8..47c7155 100644 --- a/create.c +++ b/create.c @@ -133,7 +133,7 @@ static int scan_dir(char *dirname, uint64_t *parent_dir_num) } while ((entry = readdir(dir))) { mode_t m; - struct stat s; + struct stat64 s; uint32_t uid; uint64_t size; struct user_info *ui; @@ -142,8 +142,8 @@ static int scan_dir(char *dirname, uint64_t *parent_dir_num) continue; if (!strcmp(entry->d_name, "..")) continue; - if (lstat(entry->d_name, &s) == -1) { - WARNING_LOG("lstat error for %s/%s (%s)\n", + if (lstat64(entry->d_name, &s) == -1) { + WARNING_LOG("lstat64 error for %s/%s (%s)\n", dirname, entry->d_name, strerror(errno)); continue; }