Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/kinit/nfsmount/dummypmap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1296 by niro, Fri Apr 24 18:32:46 2009 UTC revision 1297 by niro, Fri May 27 15:12:11 2011 UTC
# Line 249  pid_t start_dummy_portmap(const char *fi Line 249  pid_t start_dummy_portmap(const char *fi
249   if (errno == EINVAL || errno == EADDRINUSE)   if (errno == EINVAL || errno == EADDRINUSE)
250   return 0; /* Assume not needed */   return 0; /* Assume not needed */
251   else {   else {
252     fclose(portmap_filep);
253   fprintf(stderr, "%s: portmap spoofing failed\n",   fprintf(stderr, "%s: portmap spoofing failed\n",
254   progname);   progname);
255   return -1;   return -1;
# Line 257  pid_t start_dummy_portmap(const char *fi Line 258  pid_t start_dummy_portmap(const char *fi
258    
259   spoof_portmap = fork();   spoof_portmap = fork();
260   if (spoof_portmap == -1) {   if (spoof_portmap == -1) {
261     fclose(portmap_filep);
262   fprintf(stderr, "%s: cannot fork\n", progname);   fprintf(stderr, "%s: cannot fork\n", progname);
263   return -1;   return -1;
264   } else if (spoof_portmap == 0) {   } else if (spoof_portmap == 0) {

Legend:
Removed from v.1296  
changed lines
  Added in v.1297