diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-07-31 07:39:30 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-07-31 10:18:41 +0100 |
commit | 7c3a90f94cd6b8fec9cdd1c052b91a14c0ee0e0e (patch) | |
tree | 8139f9fe8a583b94f65308ac7a2f1068805ab60c /src | |
parent | 641f6ae3bf14940d9057860fb022c2946c1daf1c (diff) | |
download | libguestfs-7c3a90f94cd6b8fec9cdd1c052b91a14c0ee0e0e.tar.gz libguestfs-7c3a90f94cd6b8fec9cdd1c052b91a14c0ee0e0e.tar.xz libguestfs-7c3a90f94cd6b8fec9cdd1c052b91a14c0ee0e0e.zip |
Add 'realpath' command.
Diffstat (limited to 'src')
-rw-r--r-- | src/MAX_PROC_NR | 2 | ||||
-rwxr-xr-x | src/generator.ml | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR index 0234b515..9cc2bc3e 100644 --- a/src/MAX_PROC_NR +++ b/src/MAX_PROC_NR @@ -1 +1 @@ -162 +163 diff --git a/src/generator.ml b/src/generator.ml index 324b131f..3a35fa2c 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3133,6 +3133,14 @@ matching lines."); This calls the external C<zfgrep -i> program and returns the matching lines."); + ("realpath", (RString "rpath", [String "path"]), 163, [], + [InitSquashFS, Always, TestOutput ( + [["realpath"; "/../directory"]], "/directory")], + "canonicalized absolute pathname", + "\ +Return the canonicalized absolute pathname of C<path>. The +returned path has no C<.>, C<..> or symbolic link path elements."); + ] let all_functions = non_daemon_functions @ daemon_functions |