From 050fda243e3ffb5db9f8ecace4ed06398e8f8ec5 Mon Sep 17 00:00:00 2001 From: nion Date: Mon, 27 Jun 2005 17:21:11 +0000 Subject: [PATCH] Nico Golde: - fixed random hex creation if mail will be written from command line - corrected mistake in manual & update legal notes git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@320 e385b8ad-14ed-0310-8656-cc95a2468c6d --- doc/dotlock.man | 4 ++-- main.c | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/dotlock.man b/doc/dotlock.man index 646eab6..9497dfe 100644 --- a/doc/dotlock.man +++ b/doc/dotlock.man @@ -145,6 +145,6 @@ comments in dotlock.c. .PP .B muttng_dotlock is part of the Mutt-ng mail user agent package. It has been -created to avoid running mutt with group mail privileges. +created to avoid running Mutt-ng with group mail privileges. .SH AUTHOR -Thomas Roessler +Thomas Roessler , Nico Golde > diff --git a/main.c b/main.c index 0487844..679a797 100644 --- a/main.c +++ b/main.c @@ -501,11 +501,16 @@ int main (int argc, char **argv) int version = 0; int i; int explicit_folder = 0; + long sek; extern char *optarg; extern int optind; + /* initialize random number for tmp file creation */ + time (&sek); + srand (sek); + /* sanity check against stupid administrators */ - + if (getegid () != getgid ()) { fprintf (stderr, "%s: I don't want to run with privileges!\n", argv[0]); exit (1); -- 2.20.1