mount: don't relabel /dev twice in a row

This commit is contained in:
Lennart Poettering
2010-11-12 00:40:26 +01:00
parent 6d3d218b35
commit 9fe117ea5a
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -202,6 +202,10 @@ static int nftw_cb(
int tflag,
struct FTW *ftwbuf) {
/* No need to label /dev twice in a row... */
if (ftwbuf->level == 0)
return 0;
label_fix(fpath);
return 0;
};