Projects
Browse Source     Search     Timeline     Wiki

Changeset 23465

Show
Ignore:
Timestamp:
12/12/07 13:54:32 (12 months ago)
Author:
zarzycki@…
Message:

We should walk the mount table list backwards.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchd_core_logic.c

    r23464 r23465  
    67026702do_unmounts(void) 
    67036703{ 
    6704         struct statfs buf[100]; 
     6704        struct statfs buf[250]; 
    67056705        int i, found, returned; 
    67066706 
     
    67136713                } 
    67146714 
    6715                 for (i = 0; i < returned; i++) { 
     6715                /* Work backwards due to mounts on top of mounts */ 
     6716                for (i = returned - 1; i >= 0; i--) { 
    67166717                        if (strcmp(buf[i].f_mntonname, "/") == 0) { 
    67176718                                continue;