| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,4 +91,28 @@ void lsof_dialect_destroy(struct lsof_context *ctx) { | |||
| 91 | 91 | CLEAN(Vbuf); | |
| 92 | 92 | Vsz = 0; | |
| 93 | 93 | } | |
| 94 | + | ||
| 95 | + /* Free /proc/FD/fd buffer */ | ||
| 96 | + if (Dpath) { | ||
| 97 | + CLEAN(Dpath); | ||
| 98 | + Dpathl = 0; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + /* Free /proc/FD/fdinfo buffer */ | ||
| 102 | + if (Ipath) { | ||
| 103 | + CLEAN(Ipath); | ||
| 104 | + Ipathl = 0; | ||
| 105 | + } | ||
| 106 | + | ||
| 107 | + /* Free /proc/FD/fdinfo/%d buffer */ | ||
| 108 | + if (Pathi) { | ||
| 109 | + CLEAN(Pathi); | ||
| 110 | + Pathil = 0; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + /* Free /proc/FD/ temp buffer */ | ||
| 114 | + if (Path) { | ||
| 115 | + CLEAN(Path); | ||
| 116 | + Pathl = 0; | ||
| 117 | + } | ||
| 94 | 118 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,6 +226,18 @@ struct lsof_context_dialect { | |||
| 226 | 226 | /* dnode.c - lock stream buffer */ | |
| 227 | 227 | char *lock_stream_buf; | |
| 228 | 228 | size_t lock_stream_buf_sz; | |
| 229 | + /* dproc.c - /proc/FD/fd buffer */ | ||
| 230 | + char *fd_path_buf; | ||
| 231 | + int fd_path_buf_sz; | ||
| 232 | + /* dproc.c - /proc/FD/fdinfo buffer */ | ||
| 233 | + char *fdinfo_path_buf; | ||
| 234 | + int fdinfo_path_buf_sz; | ||
| 235 | + /* dproc.c - /proc/FD/fdinfo/%d buffer */ | ||
| 236 | + char *fdinfo_entry_path_buf; | ||
| 237 | + int fdinfo_entry_path_buf_sz; | ||
| 238 | + /* dproc.c - /proc/FD temp buffer */ | ||
| 239 | + char *temp_path_buf; | ||
| 240 | + int temp_path_buf_sz; | ||
| 229 | 241 | }; | |
| 230 | 242 | ||
| 231 | 243 | /* Dialect-specific cleanup function */ | |
@@ -250,4 +262,20 @@ void lsof_dialect_destroy(struct lsof_context *ctx); | |||
| 250 | 262 | # define Vbuf (ctx->dialect.lock_stream_buf) | |
| 251 | 263 | # define Vsz (ctx->dialect.lock_stream_buf_sz) | |
| 252 | 264 | ||
| 265 | + /* /proc/FD/fd path buffer macros */ | ||
| 266 | + # define Dpath (ctx->dialect.fd_path_buf) | ||
| 267 | + # define Dpathl (ctx->dialect.fd_path_buf_sz) | ||
| 268 | + | ||
| 269 | + /* /proc/FD/fdinfo path buffer macros */ | ||
| 270 | + # define Ipath (ctx->dialect.fdinfo_path_buf) | ||
| 271 | + # define Ipathl (ctx->dialect.fdinfo_path_buf_sz) | ||
| 272 | + | ||
| 273 | + /* /proc/FD/fdinfo/%d path buffer macros */ | ||
| 274 | + # define Pathi (ctx->dialect.fdinfo_entry_path_buf) | ||
| 275 | + # define Pathil (ctx->dialect.fdinfo_entry_path_buf_sz) | ||
| 276 | + | ||
| 277 | + /* /proc/FD temp path buffer macros */ | ||
| 278 | + # define Path (ctx->dialect.temp_path_buf) | ||
| 279 | + # define Pathl (ctx->dialect.temp_path_buf_sz) | ||
| 280 | + | ||
| 253 | 281 | #endif /* LINUX_LSOF_H */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -898,23 +898,15 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 898 | 898 | char *tcmd) /* task command, if non-NULL) */ | |
| 899 | 899 | { | |
| 900 | 900 | int av = 0; | |
| 901 | - static char *dpath = (char *)NULL; | ||
| 902 | - static int dpathl = 0; | ||
| 903 | 901 | short efs, enls, enss, lnk, oty, pn, pss, sf; | |
| 904 | 902 | int fd, i, ls = 0, n, ss, sv; | |
| 905 | 903 | struct l_fdinfo fi; | |
| 906 | 904 | DIR *fdp; | |
| 907 | 905 | struct dirent *fp; | |
| 908 | - static char *ipath = (char *)NULL; | ||
| 909 | - static int ipathl = 0; | ||
| 910 | 906 | int j = 0; | |
| 911 | 907 | struct lfile *lfr; | |
| 912 | 908 | struct stat lsb, sb; | |
| 913 | 909 | char nmabuf[MAXPATHLEN + 1], pbuf[MAXPATHLEN + 1]; | |
| 914 | - static char *path = (char *)NULL; | ||
| 915 | - static int pathl = 0; | ||
| 916 | - static char *pathi = (char *)NULL; | ||
| 917 | - static int pathil = 0; | ||
| 918 | 910 | char *rest; | |
| 919 | 911 | int txts = 0; | |
| 920 | 912 | int enss_fd = 0; | |
@@ -970,9 +962,9 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 970 | 962 | */ | |
| 971 | 963 | efs = 0; | |
| 972 | 964 | if (!Ckscko) { | |
| 973 | - (void)make_proc_path(ctx, idp, idpl, &path, &pathl, "cwd"); | ||
| 965 | + (void)make_proc_path(ctx, idp, idpl, &Path, &Pathl, "cwd"); | ||
| 974 | 966 | alloc_lfile(ctx, LSOF_FD_CWD, -1); | |
| 975 | - if (getlinksrc(path, pbuf, sizeof(pbuf), (char **)NULL) < 1) { | ||
| 967 | + if (getlinksrc(Path, pbuf, sizeof(pbuf), (char **)NULL) < 1) { | ||
| 976 | 968 | if (!Fwarn) { | |
| 977 | 969 | zeromem((char *)&sb, sizeof(sb)); | |
| 978 | 970 | lnk = ss = 0; | |
@@ -992,10 +984,10 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 992 | 984 | } else { | |
| 993 | 985 | ss = SB_ALL; | |
| 994 | 986 | if (HasNFS) { | |
| 995 | - if ((sv = statsafely(ctx, path, &sb))) | ||
| 987 | + if ((sv = statsafely(ctx, Path, &sb))) | ||
| 996 | 988 | sv = statEx(ctx, pbuf, &sb, &ss); | |
| 997 | 989 | } else | |
| 998 | - sv = stat(path, &sb); | ||
| 990 | + sv = stat(Path, &sb); | ||
| 999 | 991 | if (sv) { | |
| 1000 | 992 | ss = 0; | |
| 1001 | 993 | if (!Fwarn) { | |
@@ -1008,7 +1000,7 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1008 | 1000 | } | |
| 1009 | 1001 | } | |
| 1010 | 1002 | if (pn) { | |
| 1011 | - (void)process_proc_node(ctx, lnk ? pbuf : path, path, &sb, ss, | ||
| 1003 | + (void)process_proc_node(ctx, lnk ? pbuf : Path, Path, &sb, ss, | ||
| 1012 | 1004 | (struct stat *)NULL, 0); | |
| 1013 | 1005 | if (Lf->sf) | |
| 1014 | 1006 | link_lfile(ctx); | |
@@ -1019,9 +1011,9 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1019 | 1011 | */ | |
| 1020 | 1012 | lnk = ss = 0; | |
| 1021 | 1013 | if (!Ckscko) { | |
| 1022 | - (void)make_proc_path(ctx, idp, idpl, &path, &pathl, "root"); | ||
| 1014 | + (void)make_proc_path(ctx, idp, idpl, &Path, &Pathl, "root"); | ||
| 1023 | 1015 | alloc_lfile(ctx, LSOF_FD_ROOT_DIR, -1); | |
| 1024 | - if (getlinksrc(path, pbuf, sizeof(pbuf), (char **)NULL) < 1) { | ||
| 1016 | + if (getlinksrc(Path, pbuf, sizeof(pbuf), (char **)NULL) < 1) { | ||
| 1025 | 1017 | if (!Fwarn) { | |
| 1026 | 1018 | zeromem((char *)&sb, sizeof(sb)); | |
| 1027 | 1019 | (void)snpf(nmabuf, sizeof(nmabuf), "(readlink: %s)", | |
@@ -1039,10 +1031,10 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1039 | 1031 | else { | |
| 1040 | 1032 | ss = SB_ALL; | |
| 1041 | 1033 | if (HasNFS) { | |
| 1042 | - if ((sv = statsafely(ctx, path, &sb))) | ||
| 1034 | + if ((sv = statsafely(ctx, Path, &sb))) | ||
| 1043 | 1035 | sv = statEx(ctx, pbuf, &sb, &ss); | |
| 1044 | 1036 | } else | |
| 1045 | - sv = stat(path, &sb); | ||
| 1037 | + sv = stat(Path, &sb); | ||
| 1046 | 1038 | if (sv) { | |
| 1047 | 1039 | ss = 0; | |
| 1048 | 1040 | if (!Fwarn) { | |
@@ -1055,7 +1047,7 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1055 | 1047 | } | |
| 1056 | 1048 | } | |
| 1057 | 1049 | if (pn) { | |
| 1058 | - (void)process_proc_node(ctx, lnk ? pbuf : path, path, &sb, ss, | ||
| 1050 | + (void)process_proc_node(ctx, lnk ? pbuf : Path, Path, &sb, ss, | ||
| 1059 | 1051 | (struct stat *)NULL, 0); | |
| 1060 | 1052 | if (Lf->sf) | |
| 1061 | 1053 | link_lfile(ctx); | |
@@ -1066,9 +1058,9 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1066 | 1058 | */ | |
| 1067 | 1059 | lnk = ss = txts = 0; | |
| 1068 | 1060 | if (!Ckscko) { | |
| 1069 | - (void)make_proc_path(ctx, idp, idpl, &path, &pathl, "exe"); | ||
| 1061 | + (void)make_proc_path(ctx, idp, idpl, &Path, &Pathl, "exe"); | ||
| 1070 | 1062 | alloc_lfile(ctx, LSOF_FD_PROGRAM_TEXT, -1); | |
| 1071 | - if (getlinksrc(path, pbuf, sizeof(pbuf), (char **)NULL) < 1) { | ||
| 1063 | + if (getlinksrc(Path, pbuf, sizeof(pbuf), (char **)NULL) < 1) { | ||
| 1072 | 1064 | zeromem((void *)&sb, sizeof(sb)); | |
| 1073 | 1065 | if (!Fwarn) { | |
| 1074 | 1066 | if ((errno != ENOENT) || uid) { | |
@@ -1088,13 +1080,13 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1088 | 1080 | else { | |
| 1089 | 1081 | ss = SB_ALL; | |
| 1090 | 1082 | if (HasNFS) { | |
| 1091 | - if ((sv = statsafely(ctx, path, &sb))) { | ||
| 1083 | + if ((sv = statsafely(ctx, Path, &sb))) { | ||
| 1092 | 1084 | sv = statEx(ctx, pbuf, &sb, &ss); | |
| 1093 | 1085 | if (!sv && (ss & SB_DEV) && (ss & SB_INO)) | |
| 1094 | 1086 | txts = 1; | |
| 1095 | 1087 | } | |
| 1096 | 1088 | } else | |
| 1097 | - sv = stat(path, &sb); | ||
| 1089 | + sv = stat(Path, &sb); | ||
| 1098 | 1090 | if (sv) { | |
| 1099 | 1091 | ss = 0; | |
| 1100 | 1092 | if (!Fwarn) { | |
@@ -1108,7 +1100,7 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1108 | 1100 | } | |
| 1109 | 1101 | } | |
| 1110 | 1102 | if (pn) { | |
| 1111 | - (void)process_proc_node(ctx, lnk ? pbuf : path, path, &sb, ss, | ||
| 1103 | + (void)process_proc_node(ctx, lnk ? pbuf : Path, Path, &sb, ss, | ||
| 1112 | 1104 | (struct stat *)NULL, 0); | |
| 1113 | 1105 | if (Lf->sf) | |
| 1114 | 1106 | link_lfile(ctx); | |
@@ -1118,8 +1110,8 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1118 | 1110 | * Process the ID's memory map info. | |
| 1119 | 1111 | */ | |
| 1120 | 1112 | if (!Ckscko) { | |
| 1121 | - (void)make_proc_path(ctx, idp, idpl, &path, &pathl, "maps"); | ||
| 1122 | - (void)process_proc_map(ctx, path, txts ? &sb : (struct stat *)NULL, | ||
| 1113 | + (void)make_proc_path(ctx, idp, idpl, &Path, &Pathl, "maps"); | ||
| 1114 | + (void)process_proc_map(ctx, Path, txts ? &sb : (struct stat *)NULL, | ||
| 1123 | 1115 | txts ? ss : 0); | |
| 1124 | 1116 | } | |
| 1125 | 1117 | ||
@@ -1161,17 +1153,17 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1161 | 1153 | /* | |
| 1162 | 1154 | * Process the ID's file descriptor directory. | |
| 1163 | 1155 | */ | |
| 1164 | - if ((i = make_proc_path(ctx, idp, idpl, &dpath, &dpathl, "fd/")) < 3) | ||
| 1156 | + if ((i = make_proc_path(ctx, idp, idpl, &Dpath, &Dpathl, "fd/")) < 3) | ||
| 1165 | 1157 | return (0); | |
| 1166 | - dpath[i - 1] = '\0'; | ||
| 1158 | + Dpath[i - 1] = '\0'; | ||
| 1167 | 1159 | if ((OffType == OFFSET_FDINFO) && | |
| 1168 | - ((j = make_proc_path(ctx, idp, idpl, &ipath, &ipathl, "fdinfo/")) >= 7)) | ||
| 1160 | + ((j = make_proc_path(ctx, idp, idpl, &Ipath, &Ipathl, "fdinfo/")) >= 7)) | ||
| 1169 | 1161 | oty = 1; | |
| 1170 | 1162 | else | |
| 1171 | 1163 | oty = 0; | |
| 1172 | - if (!(fdp = opendir(dpath))) { | ||
| 1164 | + if (!(fdp = opendir(Dpath))) { | ||
| 1173 | 1165 | if (!Fwarn) { | |
| 1174 | - (void)snpf(nmabuf, sizeof(nmabuf), "%s (opendir: %s)", dpath, | ||
| 1166 | + (void)snpf(nmabuf, sizeof(nmabuf), "%s (opendir: %s)", Dpath, | ||
| 1175 | 1167 | strerror(errno)); | |
| 1176 | 1168 | alloc_lfile(ctx, LSOF_FD_NOFD, -1); | |
| 1177 | 1169 | nmabuf[sizeof(nmabuf) - 1] = '\0'; | |
@@ -1180,14 +1172,14 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1180 | 1172 | } | |
| 1181 | 1173 | return (0); | |
| 1182 | 1174 | } | |
| 1183 | - dpath[i - 1] = '/'; | ||
| 1175 | + Dpath[i - 1] = '/'; | ||
| 1184 | 1176 | while ((fp = readdir(fdp))) { | |
| 1185 | 1177 | if (nm2id(fp->d_name, &fd, &n)) | |
| 1186 | 1178 | continue; | |
| 1187 | - (void)make_proc_path(ctx, dpath, i, &path, &pathl, fp->d_name); | ||
| 1179 | + (void)make_proc_path(ctx, Dpath, i, &Path, &Pathl, fp->d_name); | ||
| 1188 | 1180 | (void)alloc_lfile(ctx, LSOF_FD_NUMERIC, fd); | |
| 1189 | 1181 | efs = 0; | |
| 1190 | - if (getlinksrc(path, pbuf, sizeof(pbuf), &rest) < 1) { | ||
| 1182 | + if (getlinksrc(Path, pbuf, sizeof(pbuf), &rest) < 1) { | ||
| 1191 | 1183 | zeromem((char *)&sb, sizeof(sb)); | |
| 1192 | 1184 | lnk = ss = 0; | |
| 1193 | 1185 | if (!Fwarn) { | |
@@ -1207,15 +1199,15 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1207 | 1199 | pn = 0; | |
| 1208 | 1200 | } else { | |
| 1209 | 1201 | if (HasNFS) { | |
| 1210 | - if (lstatsafely(ctx, path, &lsb)) { | ||
| 1202 | + if (lstatsafely(ctx, Path, &lsb)) { | ||
| 1211 | 1203 | enls_fd = errno; | |
| 1212 | 1204 | (void)statEx(ctx, pbuf, &lsb, &ls); | |
| 1213 | 1205 | enls = errno; | |
| 1214 | 1206 | } else { | |
| 1215 | 1207 | enls = 0; | |
| 1216 | 1208 | ls = SB_ALL; | |
| 1217 | 1209 | } | |
| 1218 | - if (statsafely(ctx, path, &sb)) { | ||
| 1210 | + if (statsafely(ctx, Path, &sb)) { | ||
| 1219 | 1211 | enss_fd = errno; | |
| 1220 | 1212 | (void)statEx(ctx, pbuf, &sb, &ss); | |
| 1221 | 1213 | enss = errno; | |
@@ -1224,9 +1216,9 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1224 | 1216 | ss = SB_ALL; | |
| 1225 | 1217 | } | |
| 1226 | 1218 | } else { | |
| 1227 | - ls = lstat(path, &lsb) ? 0 : SB_ALL; | ||
| 1219 | + ls = lstat(Path, &lsb) ? 0 : SB_ALL; | ||
| 1228 | 1220 | enls = errno; | |
| 1229 | - ss = stat(path, &sb) ? 0 : SB_ALL; | ||
| 1221 | + ss = stat(Path, &sb) ? 0 : SB_ALL; | ||
| 1230 | 1222 | enss = errno; | |
| 1231 | 1223 | } | |
| 1232 | 1224 | if (!ls && !Fwarn) { | |
@@ -1258,7 +1250,7 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1258 | 1250 | ||
| 1259 | 1251 | if (oty) { | |
| 1260 | 1252 | int fdinfo_mask = FDINFO_BASE; | |
| 1261 | - (void)make_proc_path(ctx, ipath, j, &pathi, &pathil, | ||
| 1253 | + (void)make_proc_path(ctx, Ipath, j, &Pathi, &Pathil, | ||
| 1262 | 1254 | fp->d_name); | |
| 1263 | 1255 | ||
| 1264 | 1256 | if (rest && rest[0] == '[' && rest[1] == 'e' && | |
@@ -1278,12 +1270,13 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1278 | 1270 | #endif /* defined(HASEPTOPTS) */ | |
| 1279 | 1271 | if (rest && rest[0] == '[' && rest[1] == 'p') | |
| 1280 | 1272 | fdinfo_mask |= FDINFO_PID; | |
| 1281 | - else if (Lf && Lf->ntype == N_REGLR && rest && *rest && strcmp(pbuf, "pidfd") == 0) { | ||
| 1273 | + else if (Lf && Lf->ntype == N_REGLR && rest && *rest && | ||
| 1274 | + strcmp(pbuf, "pidfd") == 0) { | ||
| 1282 | 1275 | // https://github.com/lsof-org/lsof/issues/317 | |
| 1283 | 1276 | fdinfo_mask |= FDINFO_PID; | |
| 1284 | 1277 | } | |
| 1285 | 1278 | ||
| 1286 | - if ((av = get_fdinfo(ctx, pathi, fdinfo_mask, &fi)) & | ||
| 1279 | + if ((av = get_fdinfo(ctx, Pathi, fdinfo_mask, &fi)) & | ||
| 1287 | 1280 | FDINFO_POS) { | |
| 1288 | 1281 | if (efs) { | |
| 1289 | 1282 | lfr->off = (SZOFFTYPE)fi.pos; | |
@@ -1308,7 +1301,7 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1308 | 1301 | #endif /* !defined(HASNOFSFLAGS) */ | |
| 1309 | 1302 | } | |
| 1310 | 1303 | if (pn) { | |
| 1311 | - process_proc_node(ctx, lnk ? pbuf : path, path, &sb, ss, &lsb, | ||
| 1304 | + process_proc_node(ctx, lnk ? pbuf : Path, Path, &sb, ss, &lsb, | ||
| 1312 | 1305 | ls); | |
| 1313 | 1306 | if (Lf->ntype == N_ANON_INODE) { | |
| 1314 | 1307 | if (rest && *rest) { | |
@@ -1352,15 +1345,15 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1352 | 1345 | // https://github.com/lsof-org/lsof/issues/317 | |
| 1353 | 1346 | // pidfd since Linux 6.9 becomes a regular file: | |
| 1354 | 1347 | // /proc/PID/fd/FD -> pidfd:[INODE] | |
| 1355 | - (void)snpf(rest, sizeof(pbuf) - (rest - pbuf), | ||
| 1356 | - "[pidfd:%d]", fi.pid); | ||
| 1348 | + (void)snpf(rest, sizeof(pbuf) - (rest - pbuf), "[pidfd:%d]", | ||
| 1349 | + fi.pid); | ||
| 1357 | 1350 | enter_nm(ctx, rest); | |
| 1358 | 1351 | } | |
| 1359 | 1352 | ||
| 1360 | - if ((Selflags & SELNLINK) && | ||
| 1361 | - (enss_fd == ESTALE || enls_fd == ESTALE)) { | ||
| 1362 | - Lf->sf |= SELNLINK; | ||
| 1363 | - (void)add_nma(ctx, " (STALE)", 8); | ||
| 1353 | + if ((Selflags & SELNLINK) && | ||
| 1354 | + (enss_fd == ESTALE || enls_fd == ESTALE)) { | ||
| 1355 | + Lf->sf |= SELNLINK; | ||
| 1356 | + (void)add_nma(ctx, " (STALE)", 8); | ||
| 1364 | 1357 | } | |
| 1365 | 1358 | ||
| 1366 | 1359 | if (Lf->sf) | |
@@ -1375,7 +1368,7 @@ static int process_id(struct lsof_context *ctx, /* context */ | |||
| 1375 | 1368 | /* | |
| 1376 | 1369 | * compare_mntns() - compare mount namespace of this lsof process and the | |
| 1377 | 1370 | * target process | |
| 1378 | - * | ||
| 1371 | + * | ||
| 1379 | 1372 | * Note: mount namespace path might not be found with legacy linux kernel (e.g. | |
| 1380 | 1373 | * linux-2.6) which does not have path "/proc/self/ns" or "/proc/${pid}/ns", | |
| 1381 | 1374 | * see Commit 6b4e306aa3dc ("ns: proc files for namespace naming policy.") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4077,7 +4077,8 @@ void process_proc_sock(struct lsof_context *ctx, /* context */ | |||
| 4077 | 4077 | Lf->type = LSOF_FILE_SOCKET; | |
| 4078 | 4078 | (void)snpf(Lf->iproto, sizeof(Lf->iproto), "%.*s", IPROTOL - 1, "SCTP"); | |
| 4079 | 4079 | Lf->inp_ty = 2; | |
| 4080 | - (void)snpf(tbuf, sizeof(tbuf), "%" INODEPSPEC "u", (INODETYPE)s->st_ino); | ||
| 4080 | + (void)snpf(tbuf, sizeof(tbuf), "%" INODEPSPEC "u", | ||
| 4081 | + (INODETYPE)s->st_ino); | ||
| 4081 | 4082 | tbuf[sizeof(tbuf) - 1] = '\0'; | |
| 4082 | 4083 | enter_dev_ch(ctx, tbuf); | |
| 4083 | 4084 | Namech[0] = '\0'; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments