fix for sunos

This commit is contained in:
Andrew Pamment 2018-05-14 15:33:40 +10:00
parent 2e9607eac7
commit 0d90a3cef5

View File

@ -662,7 +662,8 @@ int do_upload(struct user_record *user, char *final_path) {
}
while ((dent = readdir(inb)) != NULL) {
#ifdef __sun
stat(dent->d_name, &s);
snprintf(upload_command, 1024, "%s%s", upload_path, dent->d_name);
stat(upload_command, &s);
if (S_ISREG(s.st_mode)) {
#else
if (dent->d_type == DT_REG) {