2 * Check ctime updates when calling futimens without UTIME_OMIT for the
5 * Copyright (c) 2009 Eric Blake <ebb9@byu.net>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
18 main(int argc, char **argv)
20 int fd = creat ("file", 0600);
22 struct timespec t[2] = { { 1000000000, 0 }, { 0, UTIME_OMIT } };
29 if (st1.st_ctime == st2.st_ctime)
30 printf("failed to update ctime!\n");