Index: head/usr.bin/lam/lam.c =================================================================== --- head/usr.bin/lam/lam.c +++ head/usr.bin/lam/lam.c @@ -86,6 +86,8 @@ if (argc == 1) usage(); + if (caph_limit_stdio() == -1) + err(1, "unable to limit stdio"); getargs(argv); if (!morefiles) usage(); @@ -95,7 +97,6 @@ * mode. */ caph_cache_catpages(); - caph_limit_stdio(); if (cap_enter() < 0 && errno != ENOSYS) err(1, "unable to enter capability mode");