aboutsummaryrefslogtreecommitdiffhomepage
path: root/fishd.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-18 00:04:06 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-18 00:04:06 +1000
commitf836bd41c08952d27917977049e188347b4383c6 (patch)
tree9752ef79a720c96508b4d5ee209745224780b9fb /fishd.c
parentc9e98c2eefb40be504072f6709557ed058898305 (diff)
Write commant at beginning of .fishd file mentioning that the file should not be edited
darcs-hash:20060617140406-ac50b-c3987895fbc747212a70618acf8a18b42601e8a8.gz
Diffstat (limited to 'fishd.c')
-rw-r--r--fishd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fishd.c b/fishd.c
index 9f48af36..91fc73c9 100644
--- a/fishd.c
+++ b/fishd.c
@@ -88,7 +88,9 @@ time the original barrier request was sent have been received.
/**
Small greeting to show that fishd is running
*/
-#define GREETING "#Fish universal variable daemon\n"
+#define GREETING "# Fish universal variable daemon\n"
+
+#define SAVE_MSG "# This file is automatically generated by the fishd universal variable daemon.\n# Do NOT edit it directly, your changes will be overwritten.\n"
/**
The name of the save file. The hostname is appended to this.
@@ -426,7 +428,11 @@ void load_or_save( int save)
q_init( &c.unsent );
if( save )
+ {
+
+ write( c.fd, SAVE_MSG, strlen(SAVE_MSG) );
enqueue_all( &c );
+ }
else
read_message( &c );