/* Create a hard link relative to open directories.
- Copyright (C) 2009-2011 Free Software Foundation, Inc.
+ Copyright (C) 2009-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
return -1;
}
-#if LINKAT_TRAILING_SLASH_BUG
+# if LINKAT_TRAILING_SLASH_BUG
/* Reject trailing slashes on non-directories. */
{
size_t len1 = strlen (file1);
}
}
}
-#endif
+# endif
if (!flag)
return linkat (fd1, file1, fd2, file2, flag);