Commit dc4adc48 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Use the S_ISREG macro to determine what is a regular file

parent d0dea8f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

        }