~clint-fewbar/ubuntu/oneiric/lxc/use-uec-for-natty

« back to all changes in this revision

Viewing changes to src/lxc/nl.c

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2010-08-04 13:23:42 UTC
  • mfrom: (1.1.5 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100804132342-ds4lm3oaroeoxfxx
Tags: 0.7.2-1
* New upstream version
* Convert libcap dependency to versioned (closes: #571527)
* Bump up standards version to 3.9.0
* Fix too-deep /usr/lib/lxc/lxc path (closes: #587847)
* Add init script (closes: #573830)
  Thanks to Przemysław Knycz <pknycz@kolnet.eu> for the base example
* Bump up standards version (3.9.1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        if (!ret)
156
156
                return 0;
157
157
 
158
 
        if (msg.msg_flags & MSG_TRUNC)
 
158
        if (msg.msg_flags & MSG_TRUNC &&
 
159
            ret == answer->nlmsghdr.nlmsg_len)
159
160
                return -EMSGSIZE;
160
161
 
161
162
        return ret;
182
183
        nladdr.nl_groups = 0;
183
184
 
184
185
        ret = sendmsg(handler->fd, &msg, 0);
185
 
        if (ret < 0) {
 
186
        if (ret < 0)
186
187
                return -errno;
187
 
        }
188
188
 
189
189
        return ret;
190
190
}
209
209
                struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(answer);
210
210
                return err->error;
211
211
        }
212
 
        
 
212
 
213
213
        return 0;
214
214
}
215
215