/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | plugins.c | 84 krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct errinfo *ep) in krb5int_open_plugin() argument 92 if (stat (filepath, &statbuf) < 0) { in krb5int_open_plugin() 93 Tprintf ("stat(%s): %s\n", filepath, strerror (errno)); in krb5int_open_plugin() 113 handle = dlopen(filepath, PLUGIN_DLOPEN_FLAGS); in krb5int_open_plugin() 116 Tprintf ("dlopen(%s): %s\n", filepath, e); in krb5int_open_plugin() 139 pluginPath = CFStringCreateWithCString (kCFAllocatorDefault, filepath, in krb5int_open_plugin() 446 char *filepath = NULL; in krb5int_open_plugin_dirs() local 449 filepath = malloc (dirnamelen + strlen (filenames[j]) + 1); /* NULL */ in krb5int_open_plugin_dirs() 450 if (filepath == NULL) { in krb5int_open_plugin_dirs() 454 sprintf (filepath, "%s/%s", dirnames[i], filenames[j]); in krb5int_open_plugin_dirs() [all …]
|
/illumos-gate/usr/src/lib/varpd/libvarpd/common/ |
H A D | libvarpd_util.c | 43 char *dirpath, *filepath; in libvarpd_dirwalk() local 74 if (asprintf(&filepath, "%s/%s", dirpath, dp->d_name) == -1) { in libvarpd_dirwalk() 79 if (func(vip, filepath, arg) != 0) { in libvarpd_dirwalk() 80 free(filepath); in libvarpd_dirwalk() 85 free(filepath); in libvarpd_dirwalk()
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | util.c | 141 get_fullpath(char *dir, char *filepath) in get_fullpath() argument 147 if (filepath != NULL) in get_fullpath() 148 pathlen = strlen(filepath); in get_fullpath() 154 if (filepath[0] != '/') { in get_fullpath() 159 dir, filepath); in get_fullpath() 164 fullpath = (char *)strdup(filepath); in get_fullpath()
|
H A D | cryptoutil.h | 210 extern char *get_fullpath(char *dir, char *filepath);
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_svc.c | 326 vs_svc_vlog(char *filepath, vs_result_t *result) in vs_svc_vlog() argument 337 syslog(LOG_NOTICE, "quarantine %s\n", filepath); in vs_svc_vlog() 341 filepath, in vs_svc_vlog() 359 timebuf, strlen(filepath), filepath); in vs_svc_vlog() 363 timebuf, strlen(filepath), filepath, in vs_svc_vlog() 381 vs_svc_audit(char *filepath, vs_result_t *result) in vs_svc_audit() argument 416 event->adt_vscan_quarantine.file = filepath; in vs_svc_audit()
|
H A D | vs_main.c | 441 vscand_init_file(char *filepath, uid_t uid, gid_t gid, mode_t access_mode) in vscand_init_file() argument 447 if ((fd = open(filepath, O_RDONLY | O_CREAT, access_mode)) == -1) { in vscand_init_file() 470 gettext("Failed to initialize"), filepath); in vscand_init_file()
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sys-suspend.c | 491 char filepath[MAXPATHLEN]; in get_xauthority() local 520 (void) snprintf(filepath, sizeof (filepath), in get_xauthority() 522 if (stat(filepath, &stat_buf) == 0) { in get_xauthority() 523 (void) strlcpy(xauthority, filepath, buflen); in get_xauthority() 540 (void) snprintf(filepath, sizeof (filepath), in get_xauthority() 542 if (stat(filepath, &stat_buf) == -1) in get_xauthority() 547 (void) strlcpy(xauth, filepath, in get_xauthority()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/ |
H A D | init_os_ctx.c | 250 char* filepath = 0; in os_get_default_config_files() local 262 filepath = DEFAULT_SECURE_PROFILE_PATH; in os_get_default_config_files() 264 filepath = getenv("KRB5_CONFIG"); in os_get_default_config_files() 265 if (!filepath) filepath = DEFAULT_PROFILE_PATH; in os_get_default_config_files() 269 for(s = filepath, n_entries = 1; *s; s++) { in os_get_default_config_files() 281 for(s = filepath, i=0; (t = strchr(s, ':')) || (t=s+strlen(s)); s=t+1, i++) in os_get_default_config_files()
|
/illumos-gate/usr/src/lib/pam_modules/krb5/ |
H A D | krb5_setcred.c | 476 char *filepath = NULL; in krb5_renew_tgt() local 530 filepath = strchr(kmd->env, ':'); in krb5_renew_tgt() 535 if (filepath[1] == '\0') { in krb5_renew_tgt() 543 if (chown(filepath+1, uuid, ugid)) { in krb5_renew_tgt() 548 username, filepath); in krb5_renew_tgt()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/ |
H A D | kclient.sh | 367 FILEPATH) if [[ -z $filepath ]]; then 1684 filepath="$OPTARG" 1798 if [[ -z $dnsarg && (-z $options || -z $filepath) ]]; then 1839 if [[ -z $kdc_list && (-z $options || -z $filepath) ]]; then 1873 if [[ -n $domain_list && (-z $options || -z $filepath) ]]; then 1922 if [[ -z $options || -z $filepath ]]; then 1926 read filepath 1930 if [[ -n $filepath && -r $filepath ]]; then 1931 cp $filepath $KRB5_CONFIG 1933 printf "$(gettext "Copied %s to %s").\n" $filepath $KRB5_CONFIG [all …]
|
/illumos-gate/usr/src/cmd/auditd/ |
H A D | auditd.c | 504 char filepath[MAXPATHLEN + 1 + ISA_GROW]; in init_plugin() local 505 char *path = filepath; in init_plugin() 509 (void) strcpy(filepath, "/usr/lib/security/sparcv9/"); in init_plugin() 511 (void) strcpy(filepath, "/usr/lib/security/"); in init_plugin() 513 if (strlcat(filepath, name, MAXPATHLEN) >= MAXPATHLEN) in init_plugin()
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | find.c | 77 static char *filepath(char *file); 456 (void) fprintf(refsfound, "%s ", filepath(file)); in findcalledbysub() 662 char *file = filepath(srcfiles[i]); in findegreppat() 689 filepath(srcfiles[i])); in findfile() 1064 if (fprintf(output, "%s %s ", filepath(file), function) == EOF) { in putref() 1263 filepath(char *file) in filepath() function
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | disk_link.c | 146 char filepath[PATH_MAX]; in is_lofi_disk() local 150 size = snprintf(filepath, sizeof (filepath), "%s/dev/%s", in is_lofi_disk() 152 if (size > sizeof (filepath)) in is_lofi_disk() 155 size = readlink(filepath, buf, sizeof (buf) - 1); in is_lofi_disk()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_init.c | 109 profile_init_path(const_profile_filespec_list_t filepath, in profile_init_path() argument 119 for(s = filepath, n_entries = 1; *s; s++) { in profile_init_path() 131 for(s = filepath, i=0; ((t = strchr(s, ':')) != NULL) || in profile_init_path()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/ |
H A D | libzfs_input_check.c | 735 char filepath[] = "/tmp/ioc_test_file_XXXXXX"; in zfs_ioc_input_tests() local 761 tmpfd = mkstemp(filepath); in zfs_ioc_input_tests() 764 filepath, strerror(errno)); in zfs_ioc_input_tests() 833 (void) unlink(filepath); in zfs_ioc_input_tests()
|
/illumos-gate/usr/src/uts/common/io/vscan/ |
H A D | vscan_svc.c | 1129 vscan_svc_exempt_filetype(char *filepath) in vscan_svc_exempt_filetype() argument 1136 if ((filename = strrchr(filepath, '/')) == 0) in vscan_svc_exempt_filetype() 1137 filename = filepath; in vscan_svc_exempt_filetype()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg.c | 3463 char filepath[MAXPATHLEN]; in export_func() local 3474 filepath[0] = '\0'; in export_func() 3498 (void) strlcpy(filepath, in export_func() 3500 sizeof (filepath)); in export_func() 3501 if ((of = fopen(filepath, "w")) == NULL) { in export_func() 3502 nerr(gettext("opening file '%s': %s"), filepath, in export_func()
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 920 const char *filepath; in print_einfo_cb() local 928 filepath = ""; in print_einfo_cb() 930 filepath = plist->pl_device->stage.path; in print_einfo_cb() 932 printf("Boot block from %s:%s\n", plist->pl_devname, filepath); in print_einfo_cb()
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 3875 char filepath[PATH_MAX]; in build_etc_system_dir() local 3890 (void) snprintf(filepath, sizeof (filepath), "%s/%s", in build_etc_system_dir() 3893 if ((assemble_systemfile(filepath, tmpfile)) < 0) { in build_etc_system_dir() 3895 filepath, strerror(errno)); in build_etc_system_dir()
|