Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit db68d37

Browse files
author
David Thompson
committed
spec: Fix error in pivot_root example code.
Both unmount and MS_DETACH are invalid identifiers. Signed-off-by: David Thompson <[email protected]>
1 parent 6dd3154 commit db68d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SPEC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jailing the process inside the rootfs.
111111
put_old = mkdir(...);
112112
pivot_root(rootfs, put_old);
113113
chdir("/");
114-
unmount(put_old, MS_DETACH);
114+
umount(put_old, MNT_DETACH);
115115
rmdir(put_old);
116116
```
117117

0 commit comments

Comments
 (0)