Changes in trunk/src/sh_socket.c [22:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_socket.c
r22 r1 244 244 } 245 245 246 int sh_socket_use (c onst char * c)246 int sh_socket_use (char * c) 247 247 { 248 248 return sh_util_flagval(c, &sh_socket_flaguse); … … 289 289 #endif 290 290 291 int sh_socket_uid (c onst char * c)291 int sh_socket_uid (char * c) 292 292 { 293 293 uid_t val = (uid_t) strtol (c, (char **)NULL, 10); … … 301 301 } 302 302 303 int sh_socket_password (c onst char * c)303 int sh_socket_password (char * c) 304 304 { 305 305 #if defined(NEED_PASSWORD_AUTH) … … 378 378 379 379 name.sun_family = AF_FILE; 380 s l_strlcpy (name.sun_path, sh_sockname, sizeof(name.sun_path));380 strcpy (name.sun_path, sh_sockname); 381 381 382 382 size = (offsetof (struct sockaddr_un, sun_path) … … 878 878 879 879 new = SH_ALLOC(sizeof(struct socket_cmd)); 880 s l_strlcpy (new->cmd, in->cmd, sizeof(new->cmd));881 s l_strlcpy (new->clt, in->clt, sizeof(new->clt));882 s l_strlcpy (new->cti, sh_unix_time(0), sizeof(new->cti));880 strcpy (new->cmd, in->cmd); 881 strcpy (new->clt, in->clt); 882 strcpy (new->cti, sh_unix_time(0)); 883 883 new->next = cmdlist; 884 884 cmdlist = new; … … 896 896 if (0 == sl_strcmp(new->clt, client_name)) 897 897 { 898 s l_strlcpy (new->cmd, in->cmd, sizeof(new->cmd));899 s l_strlcpy (new->clt, in->clt, sizeof(new->clt));900 s l_strlcpy (new->cti, sh_unix_time(0), sizeof(new->cti));898 strcpy (new->cmd, in->cmd); 899 strcpy (new->clt, in->clt); 900 strcpy (new->cti, sh_unix_time(0)); 901 901 return; 902 902 } … … 905 905 906 906 new = SH_ALLOC(sizeof(struct socket_cmd)); 907 s l_strlcpy (new->cmd, in->cmd, sizeof(new->cmd));908 s l_strlcpy (new->clt, in->clt, sizeof(new->clt));909 s l_strlcpy (new->cti, sh_unix_time(0), sizeof(new->cti));907 strcpy (new->cmd, in->cmd); 908 strcpy (new->clt, in->clt); 909 strcpy (new->cti, sh_unix_time(0)); 910 910 new->next = runlist; 911 911 runlist = new;
Note:
See TracChangeset
for help on using the changeset viewer.