Browse code

0.100.x - bb11985 - onas whitespace normalization/fixup

Mickey Sola authored on 2018/02/28 03:15:00
Showing 3 changed files
... ...
@@ -542,7 +542,7 @@ static void onas_ddd_handle_extra_scanning(struct ddd_thrarg *tharg, const char
542 542
 		scth_tharg->options = options;
543 543
 		scth_tharg->opts = tharg->opts;
544 544
 		scth_tharg->pathname = strdup(pathname);
545
-                scth_tharg->engine = tharg->engine;
545
+		scth_tharg->engine = tharg->engine;
546 546
 
547 547
 		if (!pthread_create(&scth_pid, &scth_attr, onas_scan_th, scth_tharg)) break;
548 548
 
... ...
@@ -252,8 +252,8 @@ void *onas_fan_th(void *arg)
252 252
 
253 253
 		if((check = onas_fan_checkowner(fmd->pid, tharg->opts))) {
254 254
 		    scan = 0;
255
-                    if (check != CHK_SELF || !(optget(tharg->opts, "OnAccessExtraScanning")->enabled)) {
256
-		        logg("*ScanOnAccess: %s skipped (excluded UID)\n", fname);
255
+		    if (check != CHK_SELF || !(optget(tharg->opts, "OnAccessExtraScanning")->enabled)) {
256
+			logg("*ScanOnAccess: %s skipped (excluded UID)\n", fname);
257 257
                     }
258 258
 		}
259 259
 
... ...
@@ -64,13 +64,13 @@ static int onas_scth_scanfile(const char *fname, int fd, int extinfo, struct sct
64 64
 
65 65
 static int onas_scth_handle_dir(const char *pathname, struct scth_thrarg *tharg) {
66 66
 	FTS *ftsp = NULL;
67
-        int fd;
67
+	int fd;
68 68
 	int ftspopts = FTS_PHYSICAL | FTS_XDEV;
69
-        int extinfo;
70
-        int ret;
69
+	int extinfo;
70
+	int ret;
71 71
 	FTSENT *curr = NULL;
72 72
 
73
-        extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled;
73
+	extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled;
74 74
 
75 75
 	char *const pathargv[] = { (char *) pathname, NULL };
76 76
 	if (!(ftsp = _priv_fts_open(pathargv, ftspopts, NULL))) return CL_EOPEN;
... ...
@@ -93,18 +93,18 @@ static int onas_scth_handle_dir(const char *pathname, struct scth_thrarg *tharg)
93 93
 
94 94
 static int onas_scth_handle_file(const char *pathname, struct scth_thrarg *tharg) {
95 95
 	int fd;
96
-        int extinfo;
97
-        int ret;
96
+	int extinfo;
97
+	int ret;
98 98
 
99 99
 	if (!pathname) return CL_ENULLARG;
100 100
 
101
-        extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled;
101
+	extinfo = optget(tharg->opts, "ExtendedDetectionInfo")->enabled;
102 102
 
103 103
 	if ((fd = safe_open(pathname, O_RDONLY | O_BINARY)) == -1)
104 104
 		return CL_EOPEN;
105 105
 	ret = onas_scth_scanfile(pathname, fd, extinfo, tharg);
106
-            
107
-        close(fd);
106
+
107
+	close(fd);
108 108
 
109 109
 	return ret;
110 110
 }