bdy 1.24.1-dev → 1.24.2-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.24.1-dev",
4
+ "version": "1.24.2-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",
@@ -378,10 +378,10 @@ class AgentSystem {
378
378
  resolve(id);
379
379
  });
380
380
  });
381
- return Promise.all([read('-u'), read('-g')]).then(([uid, gid]) => ({
382
- uid,
383
- gid,
384
- }));
381
+ // One after the other, not Promise.all: on an unknown user both calls fail, and the second
382
+ // one would still be running when the first has already rejected - logging its error long
383
+ // after the caller has been told, into whatever is happening by then
384
+ return read('-u').then((uid) => read('-g').then((gid) => ({ uid, gid })));
385
385
  }
386
386
  // Opens a path without ever following a symlink at the end of it, so the descriptor is bound
387
387
  // to the inode this call meant: whatever the name is pointed at afterwards, an fchmod or
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.24.1-dev",
4
+ "version": "1.24.2-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",