Skip to content
Snippets Groups Projects
Commit a5fbf883 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

mount tmpfs directory after an umount pass, Thanks Danilo for this one

parent ea5bc6c5
No related branches found
No related tags found
No related merge requests found
Main author:
Eric Vidal <eric@obarun.org>
Contributors:
Danilo Spinella <danyspin97@protonmail.com>
......@@ -305,12 +305,10 @@ int main(int argc, char const *const *argv,char const *const *envp)
strerr_warni2x("Umount: ",fs) ;
if (umount(fs) == -1) sulogin ("umount: ",fs ) ;
}
if (!r)
{
strerr_warni2x("Mount: ",fs) ;
if (mount("tmpfs", fs, "tmpfs", MS_NODEV | MS_NOSUID, "mode=0755") == -1)
sulogin("mount: ",fs) ;
}
strerr_warni2x("Mount: ",fs) ;
if (mount("tmpfs", fs, "tmpfs", MS_NODEV | MS_NOSUID, "mode=0755") == -1)
sulogin("mount: ",fs) ;
}
/** create scandir */
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment