search for: guestfs_restorecon_force_bitmask

Displaying 1 result from an estimated 1 matches for "guestfs_restorecon_force_bitmask".

2012 Oct 24
1
[PATCH] NEW API: add a new api restorecon
...BELPREFIX_BITMASK) { + if (labelprefix) { + ADD_ARG (argv, i, "-L"); + ADD_ARG (argv, i, labelprefix); + } + } + + if (optargs_bitmask & GUESTFS_RESTORECON_RECURSION_BITMASK) + if (recursion) + ADD_ARG (argv, i, "-R"); + + if (optargs_bitmask & GUESTFS_RESTORECON_FORCE_BITMASK) + if (force) + ADD_ARG (argv, i, "-F"); + + ADD_ARG (argv, i, buf); + ADD_ARG (argv, i, NULL); + + r = commandv (NULL, &err, argv); + free (buf); + if (exdir) free (exdir); + if (r == -1) { + reply_with_error ("%s: %s", pathname, err); + free (err); +...