logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 36fb74d7d645b4708143d71c0fe6b034582ff830
parent a218e47bfc30c5f7aa2017c793d0d0d8ebba1fe1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 24 Jun 2025 00:11:58 +0200

format

Diffstat:

Mcmd/rm.c3++-
Mlib/strtodur.c2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmd/rm.c b/cmd/rm.c @@ -51,7 +51,8 @@ do_unlinkat(int fd, char *name, char *acc_path) if(stats.st_dev == root_stats.st_dev && stats.st_ino == root_stats.st_ino) { - fprintf(stderr, "rm: error: Target '%s' is the same inode+device as root, bailing out\n", acc_path); + fprintf( + stderr, "rm: error: Target '%s' is the same inode+device as root, bailing out\n", acc_path); return 1; } diff --git a/lib/strtodur.c b/lib/strtodur.c @@ -119,7 +119,7 @@ strtodur(char *s, struct timespec *dur) s++; } -dot_skip: + dot_skip: total += in; }