- Timestamp:
- 10/02/13 00:06:05 (11 years ago)
- Location:
- ksyslog/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ksyslog/trunk/ksyslog.c
r242 r243 6 6 7 7 #include <linux/module.h> 8 #include <linux/inet.h> 8 9 #include <linux/ip.h> 9 10 #include <linux/udp.h> … … 61 62 { 62 63 struct file *file; 63 struct nameidata nd;64 struct path ppath; 64 65 mm_segment_t oldfs; 65 66 … … 67 68 set_fs(get_ds()); 68 69 69 if (unlikely( path_lookup(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &nd)))70 if (unlikely(kern_path(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &ppath))) 70 71 file = filp_open(path, O_CREAT|O_WRONLY|O_APPEND|O_LARGEFILE, 0600); 71 72 else … … 210 211 entry->data[i] = ' '; 211 212 212 INIT_RCU_HEAD(&entry->rcu);213 213 return entry; 214 214 } -
ksyslog/trunk/ksyslog.h
r242 r243 9 9 10 10 #define UDP_ENCAP_KSYSLOG 16 11 12 #ifndef __list_for_each_rcu 13 #define __list_for_each_rcu(pos, head) \ 14 for (pos = rcu_dereference_raw(list_next_rcu(head)); \ 15 pos != (head); \ 16 pos = rcu_dereference_raw(list_next_rcu(pos))) 17 #endif 11 18 12 19 enum ksyslog_facility {
Note: See TracChangeset
for help on using the changeset viewer.