Changeset 10378
- Timestamp:
- 02/02/15 14:38:35 (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-gbox-sms.c
r10313 r10378 58 58 static void write_gsms_to_osd_file(struct s_client *cli, unsigned char *gsms) 59 59 { 60 #ifdef GBOX_ENABLE_UNSAFE_OSD 60 61 char *fext= FILE_OSD_MSG; 61 62 char *fname = get_gbox_tmp_fname(fext); … … 75 76 pclose(p); 76 77 } 78 #else 79 cs_log("OSD: username=%s dev=%s msg=%s", username(cli), cli->reader->device, gsms); 80 cs_log_dbg(D_READER, "OSD is disabled because it is a security risk, to enable it recompile OSCAM."); 81 #endif 77 82 return; 78 83 } -
trunk/module-gbox.h
r10367 r10378 1 1 #ifndef MODULE_GBOX_H_ 2 2 #define MODULE_GBOX_H_ 3 4 /* 5 * WARNING! Enabling this will make gbox call external programs for OSD with parameters 6 * received from the network. this means that a rogue server that sends you SMS messages 7 * may execute code on your machine. do not enable this unless you know what you are 8 * doing and accept the posssible *BAD* consequences 9 */ 10 //#define GBOX_ENABLE_UNSAFE_OSD 1 3 11 4 12 #ifdef MODULE_GBOX
Note:
See TracChangeset
for help on using the changeset viewer.