filepath
char filepath[MAXPATHLEN + 1 + ISA_GROW];
char *path = filepath;
(void) strcpy(filepath, "/usr/lib/security/sparcv9/");
(void) strcpy(filepath, "/usr/lib/security/");
if (strlcat(filepath, name, MAXPATHLEN) >= MAXPATHLEN)
char filepath[PATH_MAX];
(void) snprintf(filepath, sizeof (filepath), "%s/%s",
if ((assemble_systemfile(filepath, tmpfile)) < 0) {
filepath, strerror(errno));
const char *filepath;
filepath = "";
filepath = plist->pl_device->stage.path;
printf("Boot block from %s:%s\n", plist->pl_devname, filepath);
char filepath[MAXPATHLEN];
filepath[0] = '\0';
(void) strlcpy(filepath,
sizeof (filepath));
if ((of = fopen(filepath, "w")) == NULL) {
nerr(gettext("opening file '%s': %s"), filepath,
char filepath[PATH_MAX];
size = snprintf(filepath, sizeof (filepath), "%s/dev/%s",
if (size > sizeof (filepath))
size = readlink(filepath, buf, sizeof (buf) - 1);
char filepath[MAXPATHLEN];
(void) snprintf(filepath, sizeof (filepath),
if (stat(filepath, &stat_buf) == 0) {
(void) strlcpy(xauthority, filepath, buflen);
(void) snprintf(filepath, sizeof (filepath),
if (stat(filepath, &stat_buf) == -1)
(void) strlcpy(xauth, filepath,
vscand_init_file(char *filepath, uid_t uid, gid_t gid, mode_t access_mode)
if ((fd = open(filepath, O_RDONLY | O_CREAT, access_mode)) == -1) {
gettext("Failed to initialize"), filepath);
vs_svc_vlog(char *filepath, vs_result_t *result)
syslog(LOG_NOTICE, "quarantine %s\n", filepath);
filepath,
timebuf, strlen(filepath), filepath);
timebuf, strlen(filepath), filepath,
vs_svc_audit(char *filepath, vs_result_t *result)
event->adt_vscan_quarantine.file = filepath;
profile_init_path(const_profile_filespec_list_t filepath,
for(s = filepath, n_entries = 1; *s; s++) {
for(s = filepath, i=0; ((t = strchr(s, ':')) != NULL) ||
handle = dlopen(filepath, PLUGIN_DLOPEN_FLAGS);
Tprintf ("dlopen(%s): %s\n", filepath, e);
pluginPath = CFStringCreateWithCString (kCFAllocatorDefault, filepath,
char *filepath = NULL;
filepath = malloc (dirnamelen + strlen (filenames[j]) + 1); /* NULL */
if (filepath == NULL) {
sprintf (filepath, "%s/%s", dirnames[i], filenames[j]);
if (krb5int_open_plugin (filepath, &handle, ep) == 0) {
if (filepath != NULL) { free (filepath); }
char *filepath = NULL;
filepath = malloc (dirnamelen + len + 1); /* NULL */
if (filepath == NULL) {
sprintf (filepath, "%s/%*s", dirnames[i], len, d->d_name);
if (krb5int_open_plugin (filepath, &handle, ep) == 0) {
if (filepath != NULL) { free (filepath); }
krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct errinfo *ep)
if (stat (filepath, &statbuf) < 0) {
Tprintf ("stat(%s): %s\n", filepath, strerror (errno));
extern char *get_fullpath(char *dir, char *filepath);
get_fullpath(char *dir, char *filepath)
if (filepath != NULL)
pathlen = strlen(filepath);
if (filepath[0] != '/') {
dir, filepath);
fullpath = (char *)strdup(filepath);
char *filepath = NULL;
filepath = strchr(kmd->env, ':');
if (filepath[1] == '\0') {
if (chown(filepath+1, uuid, ugid)) {
username, filepath);
char *dirpath, *filepath;
if (asprintf(&filepath, "%s/%s", dirpath, dp->d_name) == -1) {
if (func(vip, filepath, arg) != 0) {
free(filepath);
free(filepath);
char filepath[] = "/tmp/ioc_test_file_XXXXXX";
tmpfd = mkstemp(filepath);
filepath, strerror(errno));
(void) unlink(filepath);
if (fprintf(output, "%s %s ", filepath(file), function) == EOF) {
(void) fprintf(refsfound, "%s ", filepath(file));
char *file = filepath(srcfiles[i]);
filepath(srcfiles[i]));
static char *filepath(char *file);
char* filepath = 0;
filepath = DEFAULT_SECURE_PROFILE_PATH;
filepath = getenv("KRB5_CONFIG");
if (!filepath) filepath = DEFAULT_PROFILE_PATH;
for(s = filepath, n_entries = 1; *s; s++) {
for(s = filepath, i=0; (t = strchr(s, ':')) || (t=s+strlen(s)); s=t+1, i++)
vscan_svc_exempt_filetype(char *filepath)
if ((filename = strrchr(filepath, '/')) == 0)
filename = filepath;