[PATCH 19/21] Use correct base for mode for debugfs create command
Valerie Aurora
val at versity.com
Tue Feb 11 13:19:16 PST 2025
The debugfs create command was using 644 decimal instead of the
correct 0644 octal for the file mode, which I noticed after I made the
same mistake in five other places.
Signed-off-by: Valerie Aurora <val at versity.com>
---
cli/debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli/debugfs.c b/cli/debugfs.c
index a3f07ec..2ac47a8 100644
--- a/cli/debugfs.c
+++ b/cli/debugfs.c
@@ -45,7 +45,7 @@ static void cmd_create(struct debugfs_context *ctx, int argc, char **argv)
return;
}
- ret = ngnfs_dir_create(ctx->nfi, ctx->cwd_ino, 644, argv[1], strlen(argv[1]));
+ ret = ngnfs_dir_create(ctx->nfi, ctx->cwd_ino, 0644, argv[1], strlen(argv[1]));
if (ret < 0)
printf("create error: "ENOF"\n", ENOA(-ret));
}
--
2.48.1
More information about the ngnfs-devel
mailing list