Lines 210-216
public:
Link Here
|
210 |
|
210 |
|
211 |
if (f==-1) f=fd; |
211 |
if (f==-1) f=fd; |
212 |
if (fstat (f,&fsb) < 0) return -1; |
212 |
if (fstat (f,&fsb) < 0) return -1; |
213 |
if ((fp=setmntent ("/proc/mounts","r"))==NULL) return -1; |
213 |
if ((fp=setmntent ("/etc/mtab","r"))==NULL) return -1; |
214 |
|
214 |
|
215 |
while ((mb=getmntent (fp))!=NULL) |
215 |
while ((mb=getmntent (fp))!=NULL) |
216 |
{ if (stat (mb->mnt_fsname,&msb) < 0) continue; // corrupted line? |
216 |
{ if (stat (mb->mnt_fsname,&msb) < 0) continue; // corrupted line? |