aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utimens_nofollow.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2014-05-10 11:19:46 +0100
committerMartin Pärtel <martin.partel@gmail.com>2014-05-10 11:19:46 +0100
commit5a549e877b2d947cf2be0d0e9decc2b8158ee933 (patch)
treeaac1c8b83d1334f41163743f7e77bdf686e1f40a /tests/utimens_nofollow.c
parent5a0f88984e9249b853b5bd19d34ff0b2534f2b9a (diff)
downloadbindfs-5a549e877b2d947cf2be0d0e9decc2b8158ee933.tar.gz
(removed trailing spaces)
Diffstat (limited to 'tests/utimens_nofollow.c')
-rw-r--r--tests/utimens_nofollow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/utimens_nofollow.c b/tests/utimens_nofollow.c
index ced9b5f..b98275f 100644
--- a/tests/utimens_nofollow.c
+++ b/tests/utimens_nofollow.c
@@ -12,21 +12,21 @@
int main(int argc, char* argv[])
{
struct timespec times[2];
-
+
if (argc != 6) {
fprintf(stderr, "Usage: utimens_nofollow path atime atime_nsec mtime mtime_nsec\n");
return 1;
}
-
+
times[0].tv_sec = (time_t)atoll(argv[2]);
times[0].tv_nsec = atoll(argv[3]);
times[1].tv_sec = (time_t)atoll(argv[4]);
times[1].tv_nsec = atoll(argv[5]);
-
+
if (utimensat(AT_FDCWD, argv[1], times, AT_SYMLINK_NOFOLLOW) == -1) {
perror("failed to utimensat the given path");
return 2;
}
-
+
return 0;
}