Magellan Linux

Diff of /tags/mkinitrd-6_3_1/busybox/miscutils/makedevs.c

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

revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC revision 1123 by niro, Wed Aug 18 21:56:57 2010 UTC
# Line 63  int makedevs_main(int argc, char **argv) Line 63  int makedevs_main(int argc, char **argv)
63   /* if mode != S_IFCHR and != S_IFBLK,   /* if mode != S_IFCHR and != S_IFBLK,
64   * third param in mknod() ignored */   * third param in mknod() ignored */
65   if (mknod(nodname, mode, makedev(Smajor, Sminor)))   if (mknod(nodname, mode, makedev(Smajor, Sminor)))
66   bb_perror_msg("can't create %s", nodname);   bb_perror_msg("can't create '%s'", nodname);
67    
68   /*if (nodname == basedev)*/ /* ex. /dev/hda - to /dev/hda1 ... */   /*if (nodname == basedev)*/ /* ex. /dev/hda - to /dev/hda1 ... */
69   nodname = buf;   nodname = buf;

Legend:
Removed from v.816  
changed lines
  Added in v.1123