File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install
49
49
%attr(644,root,root) %{_mandir }/man5/fapolicyd.rules.5.gz
50
50
51
51
%changelog
52
- * Tue May 17 2016 Steve Grubb <sgrubb@redhat.com> 0.8.1-1
53
- - Initial public release
52
+ * Thu May 19 2016 Steve Grubb <sgrubb@redhat.com> 0.8.1-1
53
+ - New release
54
54
Original file line number Diff line number Diff line change @@ -127,17 +127,22 @@ int load_mounts(void)
127
127
}
128
128
129
129
while (get_line (f , buf , PATH_MAX )) {
130
- if (buf [0 ] != '#' && buf [0 ] != 0 ) {
131
- struct stat sb ;
132
-
133
- if (stat (buf , & sb ) == 0 ) {
134
- if (!S_ISDIR (sb .st_mode )) {
135
- msg (LOG_ERR ,
136
- "mount point %s is not a directory" , buf );
137
- exit (1 );
130
+ if (buf [0 ] != '#' ) {
131
+ char * ptr = buf ;
132
+ while (* ptr == ' ' )
133
+ ptr ++ ;
134
+ if (* ptr != 0 ) {
135
+ struct stat sb ;
136
+
137
+ if (stat (ptr , & sb ) == 0 ) {
138
+ if (!S_ISDIR (sb .st_mode )) {
139
+ msg (LOG_ERR ,
140
+ "mount point %s is not a directory" , ptr );
141
+ exit (1 );
142
+ }
138
143
}
144
+ mounts_append (& mounts , ptr , lineno );
139
145
}
140
- mounts_append (& mounts , buf , lineno );
141
146
}
142
147
lineno ++ ;
143
148
}
You can’t perform that action at this time.
0 commit comments