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 15:46:44 +0000 |
commit | 5dee17436e77e6ea9e82a4bc55db0e95eda73d30 (patch) | |
tree | 54b008abd2903df1aa84b38eb2a10e2290ff0bf8 /fish/fish.c | |
parent | 2188ba9407d4cb6e912f47097a4bfac40dd2ffc2 (diff) | |
download | libguestfs-5dee17436e77e6ea9e82a4bc55db0e95eda73d30.tar.gz libguestfs-5dee17436e77e6ea9e82a4bc55db0e95eda73d30.tar.xz libguestfs-5dee17436e77e6ea9e82a4bc55db0e95eda73d30.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.
(cherry picked from commit ddae5abf80f65fc149eec253f14f073d397b49c2)
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 }; |