fix for sunos
This commit is contained in:
parent
2e9607eac7
commit
0d90a3cef5
@ -662,7 +662,8 @@ int do_upload(struct user_record *user, char *final_path) {
|
|||||||
}
|
}
|
||||||
while ((dent = readdir(inb)) != NULL) {
|
while ((dent = readdir(inb)) != NULL) {
|
||||||
#ifdef __sun
|
#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)) {
|
if (S_ISREG(s.st_mode)) {
|
||||||
#else
|
#else
|
||||||
if (dent->d_type == DT_REG) {
|
if (dent->d_type == DT_REG) {
|
||||||
|
Reference in New Issue
Block a user