2
0
mirror of https://github.com/curl/curl.git synced 2025-04-24 16:40:32 +08:00

Use the S_ISREG macro to determine what is a regular file

This commit is contained in:
Dan Fandrich 2010-08-19 11:45:54 -07:00
parent d0dea8f869
commit dc4adc484f

@ -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;
}