Skip to content
Snippets Groups Projects
Commit 2b76ef11 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch HEAD

Fix filename formatting to include space for sticky bit.
parent 170fc89c
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
int mode = i | 0644;
int rc;
sprintf(name, "%s-mknod%06o", argv[1], mode);
sprintf(name, "%s-mknod%07o", argv[1], mode);
rc = mknod(name, mode, 0x1234);
switch (i) {
case 0:
......@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
int rc;
mode = i | 0644;
sprintf(name, "%s-creat%06o", argv[1], mode);
sprintf(name, "%s-creat%07o", argv[1], mode);
fd = open(name, O_CREAT|O_RDONLY, mode);
if (fd < 0) {
fprintf(stderr, "%s: ERROR creat %s: %s\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment