angler-fishThe Vulnerability History Project

core: rework unit name validation and manipulation logic

      A variety of changes:

- Make sure all our calls distuingish OOM from other errors if OOM is
  not the only error possible.

- Be much stricter when parsing escaped paths, do not accept trailing or
  leading escaped slashes.

- Change unit validation to take a bit mask for allowing plain names,
  instance names or template names or an combination thereof.

- Refuse manipulating invalid unit name
    
commit 7410616cd9dbbec97cf98d75324da5cda2b2f7a2
+10 -9
+3 -3
+2 -2
+9 -10
+8 -8
+8 -9
+12 -11
+2 -2
+12 -11
+19 -20
+42 -13
+79 -81
+10 -10
+1 -1
+6 -6
+18 -22
+9 -9
+11 -11
+12 -13
+3 -5
+9 -8
+4 -4
+25 -30
+22 -22
+7 -8
+7 -8
+9 -9
+14 -2
+30 -29
+223 -377
+36 -42
+46 -54
+3 -5
+123 -179
expand_less