0,0 → 1,36 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
## 40_mkdir_dotlsh.dpatch by <holmgren@debian.org> |
## |
## All lines beginning with `## DP:' are a description of the patch. |
## DP: No description. |
|
@DPATCH@ |
diff -urNad trunk~/src/unix_random.c trunk/src/unix_random.c |
--- trunk~/src/unix_random.c 2006-01-23 18:47:10.000000000 +0100 |
+++ trunk/src/unix_random.c 2008-06-24 22:29:29.000000000 +0200 |
@@ -353,6 +353,15 @@ |
|
yarrow256_init(&self->yarrow, RANDOM_NSOURCES, self->sources); |
|
+ if (access(lsh_get_cstring(seed_file_name), F_OK) < 0) |
+ { |
+ werror("No seed file. Please create one by running\n"); |
+ werror("lsh-make-seed -o \"%S\".\n", seed_file_name); |
+ |
+ KILL(self); |
+ return NULL; |
+ } |
+ |
verbose("Reading seed-file `%S'\n", seed_file_name); |
|
self->lock |
@@ -374,8 +383,7 @@ |
self->seed_file_fd = open(lsh_get_cstring(seed_file_name), O_RDWR); |
if (self->seed_file_fd < 0) |
{ |
- werror("No seed file. Please create one by running\n"); |
- werror("lsh-make-seed -o \"%S\".\n", seed_file_name); |
+ werror("Could not open seed file \"%S\".\n", seed_file_name); |
|
KILL_RESOURCE(lock); |
KILL(self); |
Property changes: |
Added: svn:executable |
## -0,0 +1 ## |
+* |
\ No newline at end of property |
Index: 00list |
=================================================================== |
--- 00list (revision 47) |
+++ 00list (revision 29) |
@@ -1 +1,3 @@ |
20_sftp-server_mansection |
+30_nonettle |
+40_better_errmsg_when_dotlsh_missing |
Index: 20_sftp-server_mansection.dpatch |
=================================================================== |
--- 20_sftp-server_mansection.dpatch (revision 47) |
+++ 20_sftp-server_mansection.dpatch (revision 29) |
@@ -1,5 +1,5 @@ |
#! /bin/sh /usr/share/dpatch/dpatch-run |
-## 20_sftp-server_mansection.dpatch by Magnus Holmgren <holmgren@debian.org> |
+## 20_sftp-server_mansection.dpatch by <magnus@proffe.kibibyte.se> |
## |
## All lines beginning with `## DP:' are a description of the patch. |
## DP: Invent manual section 8lsh for lsh's sftp-server |
@@ -6,8 +6,8 @@ |
@DPATCH@ |
diff -urNad trunk~/src/sftp/sftp-server.8 trunk/src/sftp/sftp-server.8 |
---- trunk~/sftp/sftp-server.8 2006-05-08 21:11:17.000000000 +0200 |
-+++ trunk/sftp/sftp-server.8 2007-10-03 20:48:35.000000000 +0200 |
+--- trunk~/src/sftp/sftp-server.8 2006-05-08 21:11:17.000000000 +0200 |
++++ trunk/src/sftp/sftp-server.8 2007-10-03 20:48:35.000000000 +0200 |
@@ -22,7 +22,7 @@ |
.\" maintainers of the package you received this manual from and make your |
.\" modified versions available to them. |