Ignore:
Timestamp:
10/02/13 00:06:05 (11 years ago)
Author:
atzm
Message:

support for kernel 3.x ABI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ksyslog/trunk/ksyslog.c

    r242 r243  
    66 
    77#include <linux/module.h> 
     8#include <linux/inet.h> 
    89#include <linux/ip.h> 
    910#include <linux/udp.h> 
     
    6162{ 
    6263        struct file *file; 
    63         struct nameidata nd; 
     64        struct path ppath; 
    6465        mm_segment_t oldfs; 
    6566 
     
    6768        set_fs(get_ds()); 
    6869 
    69         if (unlikely(path_lookup(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &nd))) 
     70        if (unlikely(kern_path(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &ppath))) 
    7071                file = filp_open(path, O_CREAT|O_WRONLY|O_APPEND|O_LARGEFILE, 0600); 
    7172        else 
     
    210211                        entry->data[i] = ' '; 
    211212 
    212         INIT_RCU_HEAD(&entry->rcu); 
    213213        return entry; 
    214214} 
Note: See TracChangeset for help on using the changeset viewer.