touch: Newly created files were accidentally marked as FIFO's.

This commit is contained in:
Andreas Kling 2019-04-23 17:04:12 +02:00
parent fd500c79d6
commit 91f561a417
Notes: sideshowbarker 2024-07-19 14:36:59 +09:00

View file

@ -33,7 +33,7 @@ int main(int argc, char** argv)
if (rc < 0)
perror("utime");
} else {
int fd = open(argv[1], O_CREAT, 0010644);
int fd = open(argv[1], O_CREAT, 0100644);
if (fd < 0) {
perror("open");
return 1;