summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 07:37:41 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-21 07:37:41 +0000
commitf7d9145ebb7ecca3cdd9b71c388755b07712a9fe (patch)
tree3575639bdffb27f0aa9f433f2829e775c54594e7
parent2f5b7a02b87b25b63c15d1d561fb7ea618de2d8e (diff)
downloadmdevd-f7d9145ebb7ecca3cdd9b71c388755b07712a9fe.tar.gz
mdevd-f7d9145ebb7ecca3cdd9b71c388755b07712a9fe.tar.xz
mdevd-f7d9145ebb7ecca3cdd9b71c388755b07712a9fe.zip
Prepare for 0.1.0.2
-rw-r--r--INSTALL2
-rw-r--r--NEWS6
-rw-r--r--doc/index.html4
-rw-r--r--doc/upgrade.html7
-rw-r--r--package/info2
-rw-r--r--src/mdevd/mdevd.c7
6 files changed, 21 insertions, 7 deletions
diff --git a/INSTALL b/INSTALL
index 29e2fc5..171d4d9 100644
--- a/INSTALL
+++ b/INSTALL
@@ -6,7 +6,7 @@ Build Instructions
 
   - A Linux-based system with a standard C development environment
   - GNU make version 3.81 or later
-  - skalibs version 2.6.3.1 or later: http://skarnet.org/software/skalibs/
+  - skalibs version 2.7.0.0 or later: http://skarnet.org/software/skalibs/
 
  This software is Linux-specific. It will run on a Linux kernel,
 version 2.6.10 or later.
diff --git a/NEWS b/NEWS
index 126bb80..be4e8c8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,11 @@
 Changelog for mdevd.
 
+In 0.1.0.2
+----------
+
+ - Adaptation to skalibs-2.7.0.0.
+
+
 In 0.1.0.1
 ----------
 
diff --git a/doc/index.html b/doc/index.html
index 7d173dc..eef962f 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -53,7 +53,7 @@ entirely compatible with advanced mdev usage such as
 The Linux kernel must be 2.6.10 or later. </li>
  <li> GNU make, version 3.81 or later </li>
  <li> <a href="//skarnet.org/software/skalibs/">skalibs</a> version
-2.6.3.1 or later. It's a build-time requirement. It's also a run-time
+2.7.0.0 or later. It's a build-time requirement. It's also a run-time
 requirement if you link against the shared version of the skalibs
 library. </li>
 </ul>
@@ -69,7 +69,7 @@ library. </li>
 
 <ul>
  <li> The current released version of mdevd is
-<a href="mdevd-0.1.0.1.tar.gz">0.1.0.1</a>. </li>
+<a href="mdevd-0.1.0.2.tar.gz">0.1.0.2</a>. </li>
  <li> Alternatively, you can checkout a copy of the
 <a href="//git.skarnet.org/cgi-bin/cgit.cgi/mdevd/">mdevd
 git repository</a>:
diff --git a/doc/upgrade.html b/doc/upgrade.html
index 11144f2..65b260e 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -18,6 +18,13 @@
 
 <h1> What has changed in mdevd </h1>
 
+<h2> in 0.1.0.2 </h2>
+
+<ul>
+ <li> <a href="//skarnet.org/software/skalibs/">skalibs</a>
+dependency bumped to 2.7.0.0. </li>
+</ul>
+
 <h2> in 0.1.0.1 </h2>
 
 <ul>
diff --git a/package/info b/package/info
index ab75260..2640762 100644
--- a/package/info
+++ b/package/info
@@ -1,4 +1,4 @@
 package=mdevd
-version=0.1.0.1
+version=0.1.0.2
 category=admin
 package_macro_name=MDEVD
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c
index 1feae07..68d68d4 100644
--- a/src/mdevd/mdevd.c
+++ b/src/mdevd/mdevd.c
@@ -22,6 +22,7 @@
 #include <sys/socket.h>
 #include <linux/netlink.h>
 
+#include <skalibs/posixplz.h>
 #include <skalibs/types.h>
 #include <skalibs/allreadwrite.h>
 #include <skalibs/bytestr.h>
@@ -795,7 +796,7 @@ static inline int run_scriptelem (struct uevent_s *event, scriptelem const *elem
           {
             if (verbosity)
               strerr_warnwu4sys("rename ", tmppath, " to ", devname) ;
-            unlink(tmppath) ;
+            unlink_void(tmppath) ;
           }
         }
       }
@@ -837,10 +838,10 @@ static inline int run_scriptelem (struct uevent_s *event, scriptelem const *elem
     if (elem->movetype == MOVEINFO_MOVEANDLINK)
     {
       if (dryrun) strerr_warni2x("dry run: unlink ", devname) ;
-      else unlink(devname) ;
+      else unlink_void(devname) ;
     }
     if (dryrun) strerr_warni2x("dry run: unlink ", node) ;
-    else unlink(node) ;
+    else unlink_void(node) ;
   }
 
   return !elem->flagcont ;