mirror of
https://github.com/curl/curl.git
synced 2026-04-20 11:11:13 +03:00
Use the S_ISREG macro to determine what is a regular file
This commit is contained in:
parent
d0dea8f869
commit
dc4adc484f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue