summaryrefslogtreecommitdiff
path: root/lib/chdir-safer.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-12-21 09:42:36 +0000
committerJim Meyering <jim@meyering.net>2005-12-21 09:42:36 +0000
commit2956eb272ce48e87b076521d0c02ab11481c9a3e (patch)
tree2905e22b87a894e176b9202c892ecf0bfc8bb6cb /lib/chdir-safer.h
parent3108671902f9edb8b0cac27c70db66523ce7f046 (diff)
downloadcoreutils-2956eb272ce48e87b076521d0c02ab11481c9a3e.tar.xz
like chdir(2), but safer, if possible
Diffstat (limited to 'lib/chdir-safer.h')
-rw-r--r--lib/chdir-safer.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/chdir-safer.h b/lib/chdir-safer.h
new file mode 100644
index 000000000..816014162
--- /dev/null
+++ b/lib/chdir-safer.h
@@ -0,0 +1,25 @@
+/* like chdir(2), but safer, if possible
+ Copyright (C) 2005 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
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+/* Written by Jim Meyering. */
+
+#ifndef FCHMOD_SAFER_H
+# define FCHMOD_SAFER_H 1
+
+int chdir_no_follow (char const *file);
+
+#endif /* FCHMOD_SAFER_H */