summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-06-04 11:55:54 +0100
committerRichard Jones <rjones@redhat.com>2010-06-04 13:53:10 +0100
commit74958b0ad44df6ed703cd3009983d04ade3a8e93 (patch)
tree1f50857a53de6282cc5edc8b9d3742c72164d150 /src
parente3befe5a2e85179dcc5a52aa7d74b9cc5f3430ec (diff)
downloadlibguestfs-74958b0ad44df6ed703cd3009983d04ade3a8e93.tar.gz
libguestfs-74958b0ad44df6ed703cd3009983d04ade3a8e93.tar.xz
libguestfs-74958b0ad44df6ed703cd3009983d04ade3a8e93.zip
touch: Restrict touch to regular files only (RHBZ#582484).
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml
index ec6123aa..c7dbdfc7 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -992,7 +992,10 @@ closing the handle.");
"\
Touch acts like the L<touch(1)> command. It can be used to
update the timestamps on a file, or, if the file does not exist,
-to create a new zero-length file.");
+to create a new zero-length file.
+
+This command only works on regular files, and will fail on other
+file types such as directories, symbolic links, block special etc.");
("cat", (RString "content", [Pathname "path"]), 4, [ProtocolLimitWarning],
[InitISOFS, Always, TestOutput (