From e735ad6710a82604a206ad29f6cbcdd7dc4b024c Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 14 May 2023 21:43:02 -0400 Subject: refactor and add su --- command/sync.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'command/sync.c') diff --git a/command/sync.c b/command/sync.c index 797d7a5..89ff86f 100644 --- a/command/sync.c +++ b/command/sync.c @@ -1,12 +1,9 @@ -#include "args.h" #include "command.h" #include "lslib.h" -#define _X_OPEN_SOURCE 500 #include #include #include -#include #include static struct { @@ -58,7 +55,7 @@ static bool sync_file(char* path) { } else { ret = flags.sync_data ? fdatasync(fd) : fsync(fd); if (ret < 0) { - error_s("failed to sync '%s': %s", path, strerror(errno)); + error_s("failed to sync '%s'", path); } } -- cgit v1.2.3-freya