diff options
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 3b78d602f..e5279aa4f 100644 --- a/src/main.c +++ b/src/main.c @@ -4927,7 +4927,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) infdopen=TRUE; /* we ignore file size for char/block devices, sockets, etc. */ - if(S_IFREG == (fileinfo.st_mode & S_IFMT)) + if(S_ISREG(fileinfo.st_mode)) uploadfilesize=fileinfo.st_size; } |