Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/e2fsprogs/old_e2fsprogs/blkid/devname.c

    r1765 r2725  
    153153
    154154    DBG(DEBUG_DEVNAME, printf("opening %s\n", lvm_device));
    155     if ((lvf = fopen(lvm_device, "r")) == NULL) {
     155    if ((lvf = fopen_for_read(lvm_device)) == NULL) {
    156156        DBG(DEBUG_DEVNAME, printf("%s: (%d) %s\n", lvm_device, errno,
    157157                      strerror(errno)));
     
    234234    char device[110];
    235235
    236     procpt = fopen(PROC_EVMS_VOLUMES, "r");
     236    procpt = fopen_for_read(PROC_EVMS_VOLUMES);
    237237    if (!procpt)
    238238        return 0;
    239239    while (fgets(line, sizeof(line), procpt)) {
    240         if (sscanf (line, " %d %d %d %*s %*s %[^\n ]",
     240        if (sscanf(line, " %d %d %d %*s %*s %[^\n ]",
    241241                &ma, &mi, &sz, device) != 4)
    242242            continue;
     
    259259    FILE *proc;
    260260    char line[1024];
    261     char ptname0[128], ptname1[128], *ptname = 0;
     261    char ptname0[128], ptname1[128], *ptname = NULL;
    262262    char *ptnames[2];
    263263    dev_t devs[2];
     
    274274
    275275    if (cache->bic_flags & BLKID_BIC_FL_PROBED &&
    276         time(0) - cache->bic_time < BLKID_PROBE_INTERVAL)
     276        time(NULL) - cache->bic_time < BLKID_PROBE_INTERVAL)
    277277        return 0;
    278278
     
    283283#endif
    284284
    285     proc = fopen(PROC_PARTITIONS, "r");
     285    proc = fopen_for_read(PROC_PARTITIONS);
    286286    if (!proc)
    287287        return -BLKID_ERR_PROC;
     
    336336    fclose(proc);
    337337
    338     cache->bic_time = time(0);
     338    cache->bic_time = time(NULL);
    339339    cache->bic_flags |= BLKID_BIC_FL_PROBED;
    340340    blkid_flush_cache(cache);
Note: See TracChangeset for help on using the changeset viewer.