[BACK]Return to ls.c CVS log [TXT][DIR] Up to [local] / prex-old / usr / bin / ls

Diff for /prex-old/usr/bin/ls/ls.c between version 1.1.1.1 and 1.1.1.1.2.1

version 1.1.1.1, 2008/06/03 10:38:47 version 1.1.1.1.2.1, 2008/08/13 17:12:34
Line 127 
Line 127 
                 color = 35;  /* magenta */                  color = 35;  /* magenta */
         else if (S_ISDIR(sp->st_mode))          else if (S_ISDIR(sp->st_mode))
                 color = 36;  /* cyan */                  color = 36;  /* cyan */
           else if (S_ISFIFO(sp->st_mode))
                   color = 34;
         else if (S_ISLNK(sp->st_mode))          else if (S_ISLNK(sp->st_mode))
                 color = 33;  /* yellow */                  color = 33;  /* yellow */
   
Line 135 
Line 137 
                 if (S_ISDIR(sp->st_mode))                  if (S_ISDIR(sp->st_mode))
                         putchar('d');                          putchar('d');
                 else if (S_ISLNK(sp->st_mode))                  else if (S_ISLNK(sp->st_mode))
                           putchar('@');
                   else if (S_ISFIFO(sp->st_mode))
                         putchar('|');                          putchar('|');
                 else                  else
                         putchar('-');                          putchar('-');
Line 238 
Line 242 
                         putchar('\n');                          putchar('\n');
         } else {          } else {
                 print_entry(path, &st);                  print_entry(path, &st);
                   putchar('\n');
         }          }
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb