diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-02-10 10:12:45 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-02-10 11:27:13 +0000 |
commit | ddae5abf80f65fc149eec253f14f073d397b49c2 (patch) | |
tree | 1fb3f7e40c31592d34a5c18c7cbb37b76e24cd6c /fish/fish.c | |
parent | ca80e4490463d646de4504fc2bcb4e4a722bedb8 (diff) | |
download | libguestfs-ddae5abf80f65fc149eec253f14f073d397b49c2.tar.gz libguestfs-ddae5abf80f65fc149eec253f14f073d397b49c2.tar.xz libguestfs-ddae5abf80f65fc149eec253f14f073d397b49c2.zip |
fish: In edit command, upload to a new file.
If the upload fails, this means we don't leave a partially
written file.
Also add a test for the edit command.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fish/fish.c b/fish/fish.c index e388832e..575fe99d 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -163,6 +163,9 @@ main (int argc, char *argv[]) bindtextdomain (PACKAGE, LOCALEBASEDIR); textdomain (PACKAGE); + /* We use random(3) in edit.c. */ + srandom (time (NULL)); + parse_config (); enum { HELP_OPTION = CHAR_MAX + 1 }; |