Mercurial > emacs
comparison lib-src/emacsclient.c @ 816:fc1f790220a4
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 17 Jul 1992 21:04:37 +0000 |
parents | 8b101799ff37 |
children | 2b11e85880d3 |
comparison
equal
deleted
inserted
replaced
815:6aabed5f5d58 | 816:fc1f790220a4 |
---|---|
95 gethostname (system_name, sizeof (system_name)); | 95 gethostname (system_name, sizeof (system_name)); |
96 sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); | 96 sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); |
97 | 97 |
98 if (stat (server.sun_path, &statbfr) == -1) | 98 if (stat (server.sun_path, &statbfr) == -1) |
99 { | 99 { |
100 perror ("stat"); | 100 if (errno == ENOENT) |
101 fprintf (stderr, | |
102 "Can't find socket; have you started the server?\n"); | |
103 else | |
104 perror ("stat"); | |
101 exit (1); | 105 exit (1); |
102 } | 106 } |
103 if (statbfr.st_uid != geteuid()) | 107 if (statbfr.st_uid != geteuid()) |
104 { | 108 { |
105 fprintf (stderr, "Illegal socket owner\n"); | 109 fprintf (stderr, "Illegal socket owner\n"); |